aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-03 20:37:05 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-03 20:41:29 +0800
commit6110813ff7f2cc810c312593ef160350612d2375 (patch)
treeed35b231e4b6d779b36456f4c54aff4c79fbb583
parentefffb7474d695fc09f94e8aabcf54f160146b9a8 (diff)
downloadfg21sim-6110813ff7f2cc810c312593ef160350612d2375.tar.bz2
Update the default config specifications.
* Add new configs for the [frequency] section * Use "None" as the default value for some configs * Fix the syntax of "cosmology/OmegaM0"
-rw-r--r--fg21sim/configs/00-general.conf.spec18
-rw-r--r--fg21sim/configs/10-galactic.conf.spec2
2 files changed, 14 insertions, 6 deletions
diff --git a/fg21sim/configs/00-general.conf.spec b/fg21sim/configs/00-general.conf.spec
index bed3a70..ab36f52 100644
--- a/fg21sim/configs/00-general.conf.spec
+++ b/fg21sim/configs/00-general.conf.spec
@@ -23,7 +23,7 @@ lmax = int(min=1, default=1535)
# Directory contains the input data, e.g., component templates
# NOTE: This config is mandatory and should be provided by the user.
-data_dir = string(default="")
+data_dir = string(default=None)
# List of foreground components to be simulated:
# + galactic/synchrotron:
@@ -37,13 +37,21 @@ components = force_list(default=list("galactic/synchrotron"))
unit = option("MHz", default="MHz")
# How to specify the frequencies
-# + custom: directly specify the frequency values
-# + calc: calculate the frequency values using following configs
+# + custom:
+# directly specify the frequency values using the "frequencies" config
+# + calc:
+# calculate the frequency values by "start", "stop", and "step"
type = option("custom", "calc", default="custom")
# The frequency values to be simulated if above "type" is "custom".
frequencies = force_list(default=float_list(120.0))
+# Parameters to calculate the frequencies
+# start and stop frequency value (both inclusive)
+start = float(default=None)
+stop = float(default=None)
+step = float(default=None)
+
# Configuration for output products
[output]
@@ -70,7 +78,7 @@ combine_prefix = string(default="fg")
# Output directory to place the combined products
# NOTE: This config is mandatory and should be provided by the user
# if above "combine=True".
-output_dir = string(default="")
+output_dir = string(default=None)
# Cosmological parameters
@@ -78,7 +86,7 @@ output_dir = string(default="")
# Hubble constant at z=0 [ km/s/Mpc ]
H0 = float(default=71.0)
# Density of non-relativistic matter in units of the critical density at z=0
-OmegaM0 = 0.27
+OmegaM0 = float(default=0.27)
# Configurations for initialization/reconfiguration of the `logging` module
diff --git a/fg21sim/configs/10-galactic.conf.spec b/fg21sim/configs/10-galactic.conf.spec
index ac0b99f..59d66bc 100644
--- a/fg21sim/configs/10-galactic.conf.spec
+++ b/fg21sim/configs/10-galactic.conf.spec
@@ -30,4 +30,4 @@
# Whether save this component to disk
save = boolean(default=True)
# Output directory to save the simulated results
- output_dir = string(default="")
+ output_dir = string(default=None)