diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-07 15:32:07 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-07 15:32:07 +0800 |
commit | 2d0fa905d69bc8177d2253308cf67c6950f404af (patch) | |
tree | 14f798e1c4e68db91e1ee2863e30dd141d12ae79 /fg21sim/configs | |
parent | 56ed0976218c90caf6b01c532c1570d44499a7aa (diff) | |
download | fg21sim-2d0fa905d69bc8177d2253308cf67c6950f404af.tar.bz2 |
configs: Add parameters "min" and "max" to float-type options
Diffstat (limited to 'fg21sim/configs')
-rw-r--r-- | fg21sim/configs/00-general.conf.spec | 10 | ||||
-rw-r--r-- | fg21sim/configs/10-galactic.conf.spec | 4 | ||||
-rw-r--r-- | fg21sim/configs/20-extragalactic.conf.spec | 6 |
3 files changed, 10 insertions, 10 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 diff --git a/fg21sim/configs/10-galactic.conf.spec b/fg21sim/configs/10-galactic.conf.spec index 32f977b..9aa4dbe 100644 --- a/fg21sim/configs/10-galactic.conf.spec +++ b/fg21sim/configs/10-galactic.conf.spec @@ -26,7 +26,7 @@ # The template map for the simulation. template = string(default=None) # The frequency of the template map (same unit as in [frequency] section) - template_freq = float(default=None) + template_freq = float(default=None, min=0.0) # The unit of the template map pixel template_unit = string(default=None) @@ -71,7 +71,7 @@ # Resolution (unit: arcmin) for simulating each SNR, which are finally # mapped to the HEALPix map of Nside specified in "[common]" section. - resolution = float(default=1.0) + resolution = float(default=1.0, min=0.0) # Filename prefix for this component prefix = string(default="gsnr") diff --git a/fg21sim/configs/20-extragalactic.conf.spec b/fg21sim/configs/20-extragalactic.conf.spec index c6be967..4b60187 100644 --- a/fg21sim/configs/20-extragalactic.conf.spec +++ b/fg21sim/configs/20-extragalactic.conf.spec @@ -27,11 +27,11 @@ catalog_outfile = string(default=None) # The fraction that a cluster hosts a radio halo - halo_fraction = float(default=None) + halo_fraction = float(default=None, min=0.0, max=1.0) # Resolution (unit: arcmin) for simulating each cluster, which are finally # mapped to the HEALPix map of Nside specified in "[common]" section. - resolution = float(default=0.5) + resolution = float(default=0.5, min=0.0) # Filename prefix for this component prefix = string(default="egcluster") @@ -49,7 +49,7 @@ # PS components to be simulated pscomponents=string_list(default=list()) # Resolution [arcmin] - resolution=float(default=0.6) + resolution=float(default=0.6, min=0.0) # Number of each type of point source # Star forming [[[starforming]]] |