From d5ca15269ebfa6da1c4b8a7651eb06e403b6abdd Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 21 Nov 2016 10:55:34 +0800 Subject: Fix two bugs and change one variable name * foregrounds.py: Use "configs.get_path()" to get the manifest file path; * foregrounds.py: Use "min()" and "max()" since "self.frequencies" has been changed to be a plain Python list instead of a Numpy array; * foregrounds.py: Change the variable "freqid" to "freq_id"; * products.py: Assign the attribute "self.manifestfile" --- fg21sim/products.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim/products.py') diff --git a/fg21sim/products.py b/fg21sim/products.py index 454ff13..c0d23ac 100644 --- a/fg21sim/products.py +++ b/fg21sim/products.py @@ -60,7 +60,7 @@ class Products: """ def __init__(self, manifestfile=None): self.manifest = OrderedDict() - self.manifestfile = None + self.manifestfile = manifestfile if manifestfile is not None: try: self.load(manifestfile) -- cgit v1.2.2