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])
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])
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)