From 2e01bf4145087159fbecc741a9e8a96dc0a2b9c3 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 9 Dec 2016 19:03:27 +0800 Subject: 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. --- fg21sim/foregrounds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim/foregrounds.py') 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: -- cgit v1.2.2