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

Method test_nan_interior

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

Source from the content-addressed store, hash-verified

162 assert_equal(y[0], start)
163
164 def test_nan_interior(self):
165 with errstate(invalid='ignore'):
166 y = geomspace(-3, 3, num=4)
167
168 assert_equal(y[0], -3.0)
169 assert_(isnan(y[1:-1]).all())
170 assert_equal(y[3], 3.0)
171
172 with errstate(invalid='ignore'):
173 y = geomspace(-3, 3, num=4, endpoint=False)
174
175 assert_equal(y[0], -3.0)
176 assert_(isnan(y[1:]).all())
177
178 def test_complex(self):
179 # Purely imaginary

Callers

nothing calls this directly

Calls 6

errstateClass · 0.90
geomspaceFunction · 0.90
assert_equalFunction · 0.90
assert_Function · 0.90
isnanFunction · 0.90
allMethod · 0.45

Tested by

no test coverage detected