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

Method test_simple

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

Source from the content-addressed store, hash-verified

1981class TestUnwrap:
1982
1983 def test_simple(self):
1984 # check that unwrap removes jumps greater that 2*pi
1985 assert_array_equal(unwrap([1, 1 + 2 * np.pi]), [1, 1])
1986 # check that unwrap maintains continuity
1987 assert_(np.all(diff(unwrap(rand(10) * 100)) < np.pi))
1988
1989 def test_period(self):
1990 # 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