From 3bd085a34ceae6e56e3bee9887f93efdc1164932 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 26 Aug 2017 11:10:00 +0800 Subject: config: Change "output/use_float" to "output/float32" --- fg21sim/configs/00-general.conf.spec | 4 ++-- fg21sim/sky.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'fg21sim') 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"), } -- cgit v1.2.2