aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-08-26 11:10:00 +0800
committerAaron LI <aly@aaronly.me>2017-08-26 11:10:00 +0800
commit3bd085a34ceae6e56e3bee9887f93efdc1164932 (patch)
tree1a6949f3db863c29f7949ff5e329cbbde591f57d
parent983de7a16ece7b2ec993d423cff8eb4a8db36080 (diff)
downloadfg21sim-3bd085a34ceae6e56e3bee9887f93efdc1164932.tar.bz2
config: Change "output/use_float" to "output/float32"
-rw-r--r--fg21sim/configs/00-general.conf.spec4
-rw-r--r--fg21sim/sky.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/fg21sim/configs/00-general.conf.spec b/fg21sim/configs/00-general.conf.spec
index 49525d6..fe67d12 100644
--- a/fg21sim/configs/00-general.conf.spec
+++ b/fg21sim/configs/00-general.conf.spec
@@ -87,8 +87,6 @@ step = float(default=None, min=0.0)
# Unit of the sky map pixel value
unit = option("K", default="K")
-# Use single-precision float instead of double (also save spaces)
-use_float = boolean(default=True)
# Filename pattern for the output products, which will be finally
# formatted using `str.format()`.
@@ -98,6 +96,8 @@ filename_pattern = string(default="{prefix}_{frequency:06.2f}.fits")
# keyword in FITS header)?
# NOTE:
# FITS checksum calculation may account for half the time to output the data.
+# Use single-precision float instead of double (to save spaces)
+float32 = boolean(default=True)
checksum = boolean(default=False)
# Whether overwrite existing files
diff --git a/fg21sim/sky.py b/fg21sim/sky.py
index ee5fe82..bae18a6 100644
--- a/fg21sim/sky.py
+++ b/fg21sim/sky.py
@@ -812,7 +812,7 @@ def get_sky(configs):
"""
# Parameters for the base sky class
kwargs = {
- "float32": configs.getn("output/use_float"),
+ "float32": configs.getn("output/float32"),
"clobber": configs.getn("output/clobber"),
"checksum": configs.getn("output/checksum"),
}