aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/galactic/snr.py
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/galactic/snr.py')
-rw-r--r--fg21sim/galactic/snr.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/fg21sim/galactic/snr.py b/fg21sim/galactic/snr.py
index e77e24e..74b9525 100644
--- a/fg21sim/galactic/snr.py
+++ b/fg21sim/galactic/snr.py
@@ -400,6 +400,11 @@ class SuperNovaRemnants:
The frequencies where to simulate the foreground map.
Unit: [MHz]
Default: None (i.e., use ``self.frequencies``)
+
+ Returns
+ -------
+ skyfiles : list[str]
+ List of the filepath to the written sky files
"""
if frequencies is None:
frequencies = self.frequencies
@@ -407,11 +412,14 @@ class SuperNovaRemnants:
frequencies = np.array(frequencies, ndmin=1)
logger.info("Simulating {name} ...".format(name=self.name))
+ skyfiles = []
for freq in frequencies:
sky = self.simulate_frequency(freq)
outfile = self._outfilepath(frequency=freq)
sky.write(outfile)
+ skyfiles.append(outfile)
logger.info("Done simulate {name}!".format(name=self.name))
+ return skyfiles
def postprocess(self):
"""Perform the post-simulation operations before the end."""