aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/configs/00-general.conf.spec7
-rw-r--r--fg21sim/configs/10-galactic.conf.spec2
-rw-r--r--fg21sim/configs/checkers.py3
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"])