MCPcopy Index your code
hub / github.com/numpy/numpy / test_physical_quantities

Method test_physical_quantities

numpy/_core/tests/test_function_base.py:387–390  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

385 assert_equal(lim2, t2)
386
387 def test_physical_quantities(self):
388 a = PhysicalQuantity(0.0)
389 b = PhysicalQuantity(1.0)
390 assert_equal(linspace(a, b), linspace(0.0, 1.0))
391
392 def test_subclass(self):
393 a = array(0).view(PhysicalQuantity2)

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
linspaceFunction · 0.90
PhysicalQuantityClass · 0.85

Tested by

no test coverage detected