diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-29 15:23:21 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-29 15:23:21 +0800 |
commit | 7d676dd13f679175bf5554a6784dbf636190887f (patch) | |
tree | 66d0be8945f4d48fa66d0fbe08d88f25bea925a3 | |
parent | e3c07b150cb9ae18c0b8ba895631bd0c5f176651 (diff) | |
download | fg21sim-7d676dd13f679175bf5554a6784dbf636190887f.tar.bz2 |
Update logging messages
-rw-r--r-- | fg21sim/extragalactic/clusters/psformalism.py | 2 | ||||
-rw-r--r-- | fg21sim/products.py | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/psformalism.py b/fg21sim/extragalactic/clusters/psformalism.py index 3489eb5..368349c 100644 --- a/fg21sim/extragalactic/clusters/psformalism.py +++ b/fg21sim/extragalactic/clusters/psformalism.py @@ -216,6 +216,8 @@ class PSFormalism: """ logger.info("Calculating the total number of clusters within " "sky patch of coverage %.1f [deg^2]" % coverage) + logger.info("Minimum cluster mass: %.2e [Msun]" % self.Mmin_cluster) + logger.info("Minimum halo mass: %.2e [Msun]" % self.Mmin_halo) coverage *= AUC.deg2rad**2 # [deg^2] -> [rad^2] = [sr] midx = (self.mass >= self.Mmin_halo) numgrid = self.number_grid diff --git a/fg21sim/products.py b/fg21sim/products.py index 5f8d2d9..f35dcdd 100644 --- a/fg21sim/products.py +++ b/fg21sim/products.py @@ -347,7 +347,7 @@ class Products: def reset(self): self.manifest = OrderedDict() self.manifestfile = None - logger.warning("Reset products manifest") + logger.warning("Reset products manifest!") def dump(self, outfile=None, clobber=False, backup=True): """ @@ -381,8 +381,7 @@ class Products: "self.manifestfile is None") else: outfile = self.manifestfile - logger.warning("outfile not provided, " + - "use self.manifestfile: {0}".format(outfile)) + logger.info("Output to self.manifestfile: {0}".format(outfile)) outfile = os.path.expanduser(outfile) if not os.path.isabs(outfile): raise ValueError("Not an absolute path: {0}".format(outfile)) @@ -397,6 +396,7 @@ class Products: # with open(outfile, "w") as fp: json.dump(self.manifest, fp, indent=4) + fp.write("\n") logger.info("Dumped manifest to file: {0}".format(outfile)) def load(self, infile): |