def test_chdomain(self): ifg = Dataset(self.x, self.y) before = ifg.x ifg.chdomain() ifg.chdomain() after = ifg.x np.testing.assert_array_almost_equal(before, after)
def test_chdomain_noinplace(self): ifg = Dataset(self.x, self.y) before = ifg.x f = ifg.chdomain(inplace=False) g = f.chdomain(inplace=False) after = g.x np.testing.assert_array_almost_equal(before, after)