Example #1
0
 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)
Example #2
0
 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)