diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-05-21 17:06:38 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-05-21 19:52:03 +0800 |
commit | 3f830e6628366a12f37a431cbb7e0482e9d51839 (patch) | |
tree | 3fc59cffdb8aa65104197a641423afaa424ea05c /fg21sim/galactic/synchrotron.py | |
parent | eb9b7ae19305084e03382c65000c61e52ea5ebba (diff) | |
download | fg21sim-3f830e6628366a12f37a431cbb7e0482e9d51839.tar.bz2 |
galactic/freefree: Update to support sky.py
Diffstat (limited to 'fg21sim/galactic/synchrotron.py')
-rw-r--r-- | fg21sim/galactic/synchrotron.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py index 7af9088..3c9c4b2 100644 --- a/fg21sim/galactic/synchrotron.py +++ b/fg21sim/galactic/synchrotron.py @@ -73,7 +73,9 @@ class Synchrotron: def _load_maps(self): """Load the template map and spectral index map.""" sky = get_sky(self.configs) + logger.info("Loading template map ...") self.template = sky.load(self.template_path) + logger.info("Loading spectral index map ...") self.indexmap = sky.load(self.indexmap_path) def _add_smallscales(self): @@ -177,7 +179,7 @@ class Synchrotron: ) if self.use_float: skymap = skymap.astype(np.float32) - sky = self.template.copy() + sky = get_sky(configs=self.configs) sky.data = skymap sky.header = header sky.write(outfile, clobber=self.clobber, checksum=self.checksum) @@ -243,9 +245,9 @@ class Synchrotron: skymaps = [] paths = [] for f in np.array(frequencies, ndmin=1): - skymap_f, filepath = self.simulate_frequency(f) + skymap_f, outfile = self.simulate_frequency(f) skymaps.append(skymap_f) - paths.append(filepath) + paths.append(outfile) return (skymaps, paths) def postprocess(self): |