diff options
author | Aaron LI <aly@aaronly.me> | 2017-08-26 14:38:41 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-08-26 14:38:41 +0800 |
commit | 3162a3d40618e3c9c888fe5ab192248f973e5897 (patch) | |
tree | a3cdb667a73752867cee03cb758e097d091baf00 /fg21sim/extragalactic/clusters/main.py | |
parent | 40c1dee62168b2bff91bab06027fb4b7e3145fc8 (diff) | |
download | fg21sim-3162a3d40618e3c9c888fe5ab192248f973e5897.tar.bz2 |
Return the list of filepath to the written sky files
Diffstat (limited to 'fg21sim/extragalactic/clusters/main.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/main.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index f7aba0e..800a471 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -400,13 +400,21 @@ class GalaxyClusters: def simulate(self): """ Simulate the sky images of radio halos at each frequency. + + Returns + ------- + skyfiles : list[str] + List of the filepath to the written sky files """ logger.info("Simulating {name} ...".format(name=self.name)) + skyfiles = [] for idx, freq in enumerate(self.frequencies): sky = self.simulate_frequency(freqidx=idx) 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): """ |