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

Method test_physical_quantities

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

Source from the content-addressed store, hash-verified

102 assert_equal(y.dtype, dtype('int32'))
103
104 def test_physical_quantities(self):
105 a = PhysicalQuantity(1.0)
106 b = PhysicalQuantity(5.0)
107 assert_equal(logspace(a, b), logspace(1.0, 5.0))
108
109 def test_subclass(self):
110 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