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