MCPcopy Create free account
hub / github.com/numpy/numpy / test_physical_quantities

Method test_physical_quantities

numpy/core/tests/test_function_base.py:263–266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

261 assert_equal(t5, t2.T)
262
263 def test_physical_quantities(self):
264 a = PhysicalQuantity(1.0)
265 b = PhysicalQuantity(5.0)
266 assert_equal(geomspace(a, b), geomspace(1.0, 5.0))
267
268 def test_subclass(self):
269 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