aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/configs/00-general.conf.spec
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-07 15:32:07 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-07 15:32:07 +0800
commit2d0fa905d69bc8177d2253308cf67c6950f404af (patch)
tree14f798e1c4e68db91e1ee2863e30dd141d12ae79 /fg21sim/configs/00-general.conf.spec
parent56ed0976218c90caf6b01c532c1570d44499a7aa (diff)
downloadfg21sim-2d0fa905d69bc8177d2253308cf67c6950f404af.tar.bz2
configs: Add parameters "min" and "max" to float-type options
Diffstat (limited to 'fg21sim/configs/00-general.conf.spec')
-rw-r--r--fg21sim/configs/00-general.conf.spec10
1 files changed, 5 insertions, 5 deletions
diff --git a/fg21sim/configs/00-general.conf.spec b/fg21sim/configs/00-general.conf.spec
index bb4cbc8..0a84673 100644
--- a/fg21sim/configs/00-general.conf.spec
+++ b/fg21sim/configs/00-general.conf.spec
@@ -46,9 +46,9 @@ frequencies = float_list(default=list())
# Parameters to calculate the frequencies
# start and stop frequency value (both inclusive)
-start = float(default=None)
-stop = float(default=None)
-step = float(default=None)
+start = float(default=None, min=0.0)
+stop = float(default=None, min=0.0)
+step = float(default=None, min=0.0)
# Configuration for output products
@@ -88,9 +88,9 @@ output_dir = string(default=None)
# Cosmological parameters
[cosmology]
# Hubble constant at z=0 [ km/s/Mpc ]
-H0 = float(default=71.0)
+H0 = float(default=71.0, min=0.0)
# Density of non-relativistic matter in units of the critical density at z=0
-OmegaM0 = float(default=0.27)
+OmegaM0 = float(default=0.27, min=0.0, max=1.0)
# Configurations for initialization/reconfiguration of the `logging` module