示例#1
0
 def test_off_map(self) :
     self.ra_inds[3] = 10 
     self.dec_inds[6] = -1
     dirty_map.add_data_2_map(self.data, self.ra_inds, self.dec_inds, 
                       self.map, self.noise_inv)
     self.assertAlmostEqual(ma.sum(self.map),
                            self.ntime*self.shape[-1]-2*self.shape[2])
示例#2
0
 def test_no_noise(self) :
     dirty_map.add_data_2_map(self.data, self.ra_inds, self.dec_inds, 
                       self.map, None)
     self.assertAlmostEqual(ma.sum(self.map), self.ntime*self.shape[-1])
示例#3
0
 def test_mask_data(self) :
     self.data[5,8] = ma.masked 
     dirty_map.add_data_2_map(self.data, self.ra_inds, self.dec_inds, 
                       self.map, self.noise_inv)
     self.assertAlmostEqual(ma.sum(self.map), self.ntime*self.shape[-1]-1)