(self)
| 1981 | class 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 |