From 5cbbaab825382d1fc174d5f7502947a7846d0361 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 27 Oct 2016 11:15:35 +0800 Subject: Update to use the new "checksum" config option Also add a warning log message for "galactic/snr.py" and "extragalactic/clusters.py". --- fg21sim/galactic/freefree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fg21sim/galactic/freefree.py') diff --git a/fg21sim/galactic/freefree.py b/fg21sim/galactic/freefree.py index 2023798..bc5741b 100644 --- a/fg21sim/galactic/freefree.py +++ b/fg21sim/galactic/freefree.py @@ -82,6 +82,7 @@ class FreeFree: # self.filename_pattern = self.configs.getn("output/filename_pattern") self.use_float = self.configs.getn("output/use_float") + self.checksum = self.configs.getn("output/checksum") self.clobber = self.configs.getn("output/clobber") self.nside = self.configs.getn("common/nside") self.freq_unit = au.Unit(self.configs.getn("frequency/unit")) @@ -230,7 +231,7 @@ class FreeFree: if self.use_float: hpmap = hpmap.astype(np.float32) write_fits_healpix(filepath, hpmap, header=header, - clobber=self.clobber) + clobber=self.clobber, checksum=self.checksum) logger.info("Write simulated map to file: {0}".format(filepath)) def preprocess(self): -- cgit v1.2.2