aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/foregrounds.py
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/foregrounds.py')
-rw-r--r--fg21sim/foregrounds.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/fg21sim/foregrounds.py b/fg21sim/foregrounds.py
index 2206edf..5df2584 100644
--- a/fg21sim/foregrounds.py
+++ b/fg21sim/foregrounds.py
@@ -149,6 +149,11 @@ class Foregrounds:
def _output(self, hpmap, frequency):
"""Write the simulated free-free map to disk with proper header
keywords and history.
+
+ Returns
+ -------
+ filepath : str
+ The (absolute) path to the output HEALPix map file.
"""
if not os.path.exists(self.output_dir):
os.mkdir(self.output_dir)
@@ -198,6 +203,7 @@ class Foregrounds:
for comp_obj in self.components.values():
hpmap_f += comp_obj.simulate_frequency(f)
#
+ hpmap, filepath = comp_obj.simulate_frequency(freq)
if self.combine:
self._output(hpmap_f, f)