From 9f713b6b099a960488ce1b6aed6ef76be43471b5 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 26 Aug 2017 15:43:21 +0800 Subject: configs: Clean up unused options; clean up checkers as well --- fg21sim/configs/00-general.conf.spec | 7 +++---- fg21sim/configs/10-galactic.conf.spec | 2 -- fg21sim/configs/checkers.py | 3 +-- 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'fg21sim') 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"]) -- cgit v1.2.2