From 2d0fa905d69bc8177d2253308cf67c6950f404af Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 7 Nov 2016 15:32:07 +0800 Subject: configs: Add parameters "min" and "max" to float-type options --- fg21sim/configs/00-general.conf.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fg21sim/configs/00-general.conf.spec') 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 -- cgit v1.2.2