aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-02-28 19:48:31 +0800
committerAaron LI <aly@aaronly.me>2019-02-28 19:48:31 +0800
commit31f05663791f78adf6737c53e342faf2e68b8942 (patch)
treed15d3bf2ab1f44aa137d710e7bcc88cfa615a739
parenta6d77ebcbc55a2f79007bc011f0a3679191f2e42 (diff)
downloadfg21sim-31f05663791f78adf6737c53e342faf2e68b8942.tar.bz2
foreground: Do not add to products if empty
-rw-r--r--fg21sim/foregrounds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/foregrounds.py b/fg21sim/foregrounds.py
index 45faa52..4451725 100644
--- a/fg21sim/foregrounds.py
+++ b/fg21sim/foregrounds.py
@@ -104,7 +104,7 @@ class Foregrounds:
comp_obj = comp_cls(self.configs)
comp_obj.preprocess()
skyfiles = comp_obj.simulate()
- if self.products:
+ if self.products and skyfiles:
self.products.add_component(compID, skyfiles)
comp_obj.postprocess()