aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/main.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-19 10:04:41 +0800
committerAaron LI <aly@aaronly.me>2017-10-19 10:04:41 +0800
commite8e7198c67b4c0e62cd419b1ebb8b300a853057d (patch)
tree85ecdfc6a48996b111af7cdbb4df2a94e857a7fd /fg21sim/extragalactic/clusters/main.py
parent73e6f8a436e7b805144c48c757a7bab0ab94b01b (diff)
downloadfg21sim-e8e7198c67b4c0e62cd419b1ebb8b300a853057d.tar.bz2
clusters: "catalog_outfile" is required
Diffstat (limited to 'fg21sim/extragalactic/clusters/main.py')
-rw-r--r--fg21sim/extragalactic/clusters/main.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
index 6b7cefa..037b983 100644
--- a/fg21sim/extragalactic/clusters/main.py
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -432,9 +432,7 @@ class GalaxyClusters:
logger.info("{name}: postprocessing ...".format(name=self.name))
# Save the final resulting clusters catalog
logger.info("Save the resulting catalog ...")
- if self.catalog_outfile is None:
- logger.warning("Catalog output file not set; skip saving!")
- elif self.use_output_catalog:
+ if self.use_output_catalog:
logger.info("No need to save the cluster catalog.")
else:
dataframe_to_csv(self.catalog, outfile=self.catalog_outfile,