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

Method test_simple

numpy/lib/tests/test_function_base.py:2240–2244  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2238class TestUnwrap:
2239
2240 def test_simple(self):
2241 # check that unwrap removes jumps greater that 2*pi
2242 assert_array_equal(unwrap([1, 1 + 2 * np.pi]), [1, 1])
2243 # check that unwrap maintains continuity
2244 assert_(np.all(diff(unwrap(rand(10) * 100)) < np.pi))
2245
2246 def test_period(self):
2247 # check that unwrap removes jumps greater that 255

Callers

nothing calls this directly

Calls 6

assert_array_equalFunction · 0.90
unwrapFunction · 0.90
assert_Function · 0.90
diffFunction · 0.90
randFunction · 0.85
allMethod · 0.45

Tested by

no test coverage detected