aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/configs
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-08-26 11:17:08 +0800
committerAaron LI <aly@aaronly.me>2017-08-26 11:17:08 +0800
commit2760364f39688437437beb94215e3690ecc1c02a (patch)
treedf8e9b93f63b0511771d8d4ba05051ffca755d94 /fg21sim/configs
parentf6f7ce980797187aed031ae7979be2bf17f82429 (diff)
downloadfg21sim-2760364f39688437437beb94215e3690ecc1c02a.tar.bz2
configs: Remove option "save"; all enabled components will be saved
Diffstat (limited to 'fg21sim/configs')
-rw-r--r--fg21sim/configs/10-galactic.conf.spec6
-rw-r--r--fg21sim/configs/20-extragalactic.conf.spec4
-rw-r--r--fg21sim/configs/checkers.py12
3 files changed, 4 insertions, 18 deletions
diff --git a/fg21sim/configs/10-galactic.conf.spec b/fg21sim/configs/10-galactic.conf.spec
index 116586f..8d3ee77 100644
--- a/fg21sim/configs/10-galactic.conf.spec
+++ b/fg21sim/configs/10-galactic.conf.spec
@@ -45,8 +45,6 @@
# Filename prefix for this component
prefix = string(default="gsync")
- # Whether save this component to disk
- save = boolean(default=True)
# Output directory to save the simulated results
output_dir = string(default=None)
@@ -81,8 +79,6 @@
# Filename prefix for this component
prefix = string(default="gfree")
- # Whether save this component to disk
- save = boolean(default=True)
# Output directory to save the simulated results
output_dir = string(default=None)
@@ -100,7 +96,5 @@
# Filename prefix for this component
prefix = string(default="gsnr")
- # Whether save this component to disk
- save = boolean(default=True)
# Output directory to save the simulated results
output_dir = string(default=None)
diff --git a/fg21sim/configs/20-extragalactic.conf.spec b/fg21sim/configs/20-extragalactic.conf.spec
index c3e27bc..4ed01ee 100644
--- a/fg21sim/configs/20-extragalactic.conf.spec
+++ b/fg21sim/configs/20-extragalactic.conf.spec
@@ -65,8 +65,6 @@
# Filename prefix for this component
prefix = string(default="cluster")
- # Whether save this component to disk
- save = boolean(default=True)
# Output directory to save the simulated results
output_dir = string(default=None)
@@ -106,8 +104,6 @@
# Extragalactic point sources
[[pointsources]]
- # Whether save this point source catelogue to disk
- save = boolean(default=True)
# Output directory to save the simulated catalog
output_dir = string(default="PS_tables")
# PS components to be simulated
diff --git a/fg21sim/configs/checkers.py b/fg21sim/configs/checkers.py
index 698311d..92751bf 100644
--- a/fg21sim/configs/checkers.py
+++ b/fg21sim/configs/checkers.py
@@ -118,8 +118,7 @@ def check_galactic_synchrotron(configs):
results[key] = "not greater than 'lmin'"
else:
results.update(res)
- if configs.getn(comp+"/save"):
- results.update(_check_missing(configs, comp+"/output_dir"))
+ results.update(_check_missing(configs, comp+"/output_dir"))
return results
@@ -137,8 +136,7 @@ def check_galactic_freefree(configs):
results.update(
_check_existence(configs, [comp+"/halphamap", comp+"/dustmap"])
)
- if configs.getn(comp+"/save"):
- results.update(_check_missing(configs, comp+"/output_dir"))
+ results.update(_check_missing(configs, comp+"/output_dir"))
return results
@@ -152,8 +150,7 @@ def check_galactic_snr(configs):
results.update(
_check_existence(configs, comp+"/catalog")
)
- if configs.getn(comp+"/save"):
- results.update(_check_missing(configs, comp+"/output_dir"))
+ results.update(_check_missing(configs, comp+"/output_dir"))
return results
@@ -169,8 +166,7 @@ def check_extragalactic_clusters(configs):
results.update(
_check_existence(configs, comp+"/catalog")
)
- if configs.getn(comp+"/save"):
- results.update(_check_missing(configs, comp+"/output_dir"))
+ results.update(_check_missing(configs, comp+"/output_dir"))
return results