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

Method test_physical_quantities

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

Source from the content-addressed store, hash-verified

128 assert_equal(y.dtype, dtype('int32'))
129
130 def test_physical_quantities(self):
131 a = PhysicalQuantity(1.0)
132 b = PhysicalQuantity(5.0)
133 assert_equal(logspace(a, b), logspace(1.0, 5.0))
134
135 def test_subclass(self):
136 a = array(1).view(PhysicalQuantity2)

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
logspaceFunction · 0.90
PhysicalQuantityClass · 0.85

Tested by

no test coverage detected