diff options
Diffstat (limited to 'fg21sim')
-rw-r--r-- | fg21sim/extragalactic/clusters/main.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index 2361635..15a9dcd 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -321,6 +321,27 @@ class GalaxyClusters: hdict["template"] = template logger.info("Done drawn halo template images.") + def _outfilepath(self, frequency, **kwargs): + """ + Generate the path/filename to the output file for writing + the simulate sky images. + + Parameters + ---------- + frequency : float + The frequency of the output sky image. + Unit: [MHz] + + Returns + ------- + filepath : str + The generated filepath for the output sky file. + """ + filename = self.filename_pattern.format( + prefix=self.prefix, frequency=frequency, **kwargs) + filepath = os.path.join(self.output_dir, filename) + return filepath + def preprocess(self): """ Perform the preparation procedures for the later simulations. |