aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fg21sim/extragalactic/clusters/psformalism.py2
-rw-r--r--fg21sim/products.py6
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):