diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-21 10:55:34 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-21 10:55:34 +0800 |
commit | d5ca15269ebfa6da1c4b8a7651eb06e403b6abdd (patch) | |
tree | 294921668bdac3bbbb9614d8aee964accae28edb /fg21sim/products.py | |
parent | 1d8584da1d62b605349a198182d0d720049403b1 (diff) | |
download | fg21sim-d5ca15269ebfa6da1c4b8a7651eb06e403b6abdd.tar.bz2 |
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"
Diffstat (limited to 'fg21sim/products.py')
-rw-r--r-- | fg21sim/products.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |