diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-05-21 21:24:27 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-05-21 21:24:27 +0800 |
commit | d2c9dd2601d312077c11ca0a36ef02429b1bfbfc (patch) | |
tree | 0dcf6721460287b9d30f1e565843cde8b6f86efa /fg21sim/configs/checkers.py | |
parent | 8257049e7947e95858295ddd2cc55b758a432194 (diff) | |
download | fg21sim-d2c9dd2601d312077c11ca0a36ef02429b1bfbfc.tar.bz2 |
configs/checkers: Check SNR simulation resolution against pixel size
Diffstat (limited to 'fg21sim/configs/checkers.py')
-rw-r--r-- | fg21sim/configs/checkers.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fg21sim/configs/checkers.py b/fg21sim/configs/checkers.py index ffb1e63..2535f9e 100644 --- a/fg21sim/configs/checkers.py +++ b/fg21sim/configs/checkers.py @@ -15,6 +15,7 @@ Therefore, they are very different to the checker functions used in the import os from ..errors import ConfigError +from ..sky import get_sky def _check_missing(configs, keys): @@ -162,6 +163,12 @@ def check_galactic_snr(configs): ) if configs.getn(comp+"/save"): results.update(_check_missing(configs, comp+"/output_dir")) + # simulation resolution should be higher than the output sky map + sky = get_sky(configs) + key = comp + "/resolution" + resolution = configs.getn(key) # [ arcmin ] + if resolution < sky.pixelsize: + results[key] = "resolution should be higher than output map" return results |