MCPcopy Index your code
hub / github.com/numpy/numpy / test_nan_interior

Method test_nan_interior

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

Source from the content-addressed store, hash-verified

188 assert_equal(y[0], start)
189
190 def test_nan_interior(self):
191 with errstate(invalid='ignore'):
192 y = geomspace(-3, 3, num=4)
193
194 assert_equal(y[0], -3.0)
195 assert_(isnan(y[1:-1]).all())
196 assert_equal(y[3], 3.0)
197
198 with errstate(invalid='ignore'):
199 y = geomspace(-3, 3, num=4, endpoint=False)
200
201 assert_equal(y[0], -3.0)
202 assert_(isnan(y[1:]).all())
203
204 def test_complex(self):
205 # Purely imaginary

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected