diff options
Diffstat (limited to 'fg21sim/extragalactic/clusters.py')
-rw-r--r-- | fg21sim/extragalactic/clusters.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters.py b/fg21sim/extragalactic/clusters.py index 540ec52..753b025 100644 --- a/fg21sim/extragalactic/clusters.py +++ b/fg21sim/extragalactic/clusters.py @@ -108,6 +108,7 @@ class GalaxyClusters: # 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")) @@ -160,6 +161,8 @@ class GalaxyClusters: # Save catalog data if os.path.exists(self.catalog_outfile): if self.clobber: + logger.warning("Remove existing catalog file: {0}".format( + self.catalog_outfile)) os.remove(self.catalog_outfile) else: raise OSError("Output file already exists: {0}".format( @@ -599,7 +602,7 @@ class GalaxyClusters: 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): |