aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/configs/checkers.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-08-26 11:06:19 +0800
committerAaron LI <aly@aaronly.me>2017-08-26 11:06:19 +0800
commit983de7a16ece7b2ec993d423cff8eb4a8db36080 (patch)
tree8aa0d8da5dc9d08cc92e804fa350f5309d54c204 /fg21sim/configs/checkers.py
parent4b5967f7c51a340ecbfb418fabf62e292b65020d (diff)
downloadfg21sim-983de7a16ece7b2ec993d423cff8eb4a8db36080.tar.bz2
foregrounds.py: Remove foreground components combination
* Remove output configs "combine", "combine_prefix", "output_dir" * Remove configuration checker "check_output"
Diffstat (limited to 'fg21sim/configs/checkers.py')
-rw-r--r--fg21sim/configs/checkers.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/fg21sim/configs/checkers.py b/fg21sim/configs/checkers.py
index ffb1e63..698311d 100644
--- a/fg21sim/configs/checkers.py
+++ b/fg21sim/configs/checkers.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+# Copyright (c) 2016-2017 Weitian LI <weitian@aaronly.me>
# MIT license
"""
@@ -93,14 +93,6 @@ def check_frequency(configs):
return results
-def check_output(configs):
- """Check the "[output]" section of the configurations."""
- results = {}
- if configs.getn("output/combine"):
- results.update(_check_missing(configs, "output/output_dir"))
- return results
-
-
def check_galactic_synchrotron(configs):
"""Check the "[galactic][synchrotron]" section of the configurations."""
comp = "galactic/synchrotron"
@@ -187,7 +179,6 @@ _CHECKERS = [
check_foregrounds,
check_sky,
check_frequency,
- check_output,
check_galactic_synchrotron,
check_galactic_freefree,
check_galactic_snr,
@@ -205,13 +196,13 @@ def check_configs(configs, raise_exception=True, checkers=_CHECKERS):
Parameters
----------
- configs : `ConfigManager` instance
+ configs : `~ConfigManager`
An ``ConfigManager`` instance contains both default and user
configurations.
raise_exception : bool, optional
Whether raise a ``ConfigError`` exception if there is any invalid
config options?
- checkers : list of functions, optional
+ checkers : list[function], optional
List of checker functions through which the configurations
will be checked.