MCPcopy
hub / github.com/numpy/numpy / test_physical_quantities

Method test_physical_quantities

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

Source from the content-addressed store, hash-verified

297 assert_equal(t5, t2.T)
298
299 def test_physical_quantities(self):
300 a = PhysicalQuantity(1.0)
301 b = PhysicalQuantity(5.0)
302 assert_equal(geomspace(a, b), geomspace(1.0, 5.0))
303
304 def test_subclass(self):
305 a = array(1).view(PhysicalQuantity2)

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
geomspaceFunction · 0.90
PhysicalQuantityClass · 0.85

Tested by

no test coverage detected