aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/foregrounds.py
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-12-09 19:03:27 +0800
committerAaron LI <aaronly.me@outlook.com>2016-12-09 19:05:46 +0800
commit2e01bf4145087159fbecc741a9e8a96dc0a2b9c3 (patch)
tree3873ec0a5df9954cdd15016214545055ff18ed18 /fg21sim/foregrounds.py
parent7038b8b6f14e9c50cd3ebb7c1e90cf9b12b57613 (diff)
downloadfg21sim-2e01bf4145087159fbecc741a9e8a96dc0a2b9c3.tar.bz2
products.py: Add parameter "load" to __init__()
The "load" parameter explicitly controls whether to load the specified manifest file. Update "foregrounds.py" to use this new "load" parameter, which prevent the manifest file been loaded. Otherwise, if the output manifest file already exists, it will be loaded to Products, which may cause inconsistencies with the manifest of newly simulated products.
Diffstat (limited to 'fg21sim/foregrounds.py')
-rw-r--r--fg21sim/foregrounds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/foregrounds.py b/fg21sim/foregrounds.py
index a64f21c..d74dfaf 100644
--- a/fg21sim/foregrounds.py
+++ b/fg21sim/foregrounds.py
@@ -80,7 +80,7 @@ class Foregrounds:
# Initialize the products manifest
logger.info("Initialize the products manifest ...")
manifestfile = self.configs.get_path("output/manifest")
- self.products = Products(manifestfile)
+ self.products = Products(manifestfile, load=False)
# Initialize enabled components
self.components = OrderedDict()
for comp in self.components_id: