diff options
author | Aaron LI <aly@aaronly.me> | 2017-08-26 15:43:21 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-08-26 15:43:21 +0800 |
commit | 9f713b6b099a960488ce1b6aed6ef76be43471b5 (patch) | |
tree | d7c9823714030ccc92d5552840cd9ff8636a9a87 | |
parent | 32bc2e5f436167432cfbf67fd6c0b162080449c9 (diff) | |
download | fg21sim-9f713b6b099a960488ce1b6aed6ef76be43471b5.tar.bz2 |
configs: Clean up unused options; clean up checkers as well
-rw-r--r-- | fg21sim/configs/00-general.conf.spec | 7 | ||||
-rw-r--r-- | fg21sim/configs/10-galactic.conf.spec | 2 | ||||
-rw-r--r-- | fg21sim/configs/checkers.py | 3 |
3 files changed, 4 insertions, 8 deletions
diff --git a/fg21sim/configs/00-general.conf.spec b/fg21sim/configs/00-general.conf.spec index afbbb83..a6b3af2 100644 --- a/fg21sim/configs/00-general.conf.spec +++ b/fg21sim/configs/00-general.conf.spec @@ -62,9 +62,6 @@ type = option("patch", "healpix", default="patch") # Frequencies specification of the simulation products [frequency] -# Unit of the frequency value -unit = option("MHz", default="MHz") - # How to specify the frequencies # + custom: # directly specify the frequency values using the "frequencies" config @@ -73,10 +70,12 @@ unit = option("MHz", default="MHz") type = option("custom", "calc", default="custom") # The frequency values to be simulated if above "type" is "custom". +# Unit: [MHz] frequencies = float_list(default=list()) # Parameters to calculate the frequencies -# start and stop frequency value (both inclusive) +# NOTE: "start" and "stop" frequencies are both inclusive. +# Unit: [MHz] start = float(default=None, min=0.0) stop = float(default=None, min=0.0) step = float(default=None, min=0.0) diff --git a/fg21sim/configs/10-galactic.conf.spec b/fg21sim/configs/10-galactic.conf.spec index 8d3ee77..85cc8ee 100644 --- a/fg21sim/configs/10-galactic.conf.spec +++ b/fg21sim/configs/10-galactic.conf.spec @@ -27,8 +27,6 @@ template = string(default=None) # The frequency of the template map (same unit as in [frequency] section) template_freq = float(default=None, min=0.0) - # The unit of the template map pixel - template_unit = string(default=None) # Spectral index map indexmap = string(default=None) diff --git a/fg21sim/configs/checkers.py b/fg21sim/configs/checkers.py index 92751bf..12823a2 100644 --- a/fg21sim/configs/checkers.py +++ b/fg21sim/configs/checkers.py @@ -103,8 +103,7 @@ def check_galactic_synchrotron(configs): results = {} # Only validate the configs if this component is enabled results.update( - _check_missing(configs, [comp+"/template_freq", - comp+"/template_unit"]) + _check_missing(configs, comp+"/template_freq") ) results.update( _check_existence(configs, [comp+"/template", comp+"/indexmap"]) |