diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-28 17:29:58 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-28 17:29:58 +0800 |
commit | f24ca8cd4fcc6349f5b789c53586b37748751c2e (patch) | |
tree | 973500a7e2d6aad5aa0bbcc3c3de4a5acee47420 /fg21sim/extragalactic | |
parent | db856eb2db2f5632b5648223b05d57bad2d153d9 (diff) | |
download | fg21sim-f24ca8cd4fcc6349f5b789c53586b37748751c2e.tar.bz2 |
clusters/main: Fix column names due to previous renaming
Diffstat (limited to 'fg21sim/extragalactic')
-rw-r--r-- | fg21sim/extragalactic/clusters/main.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index cac30fd..ef10ef1 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -348,7 +348,7 @@ class GalaxyClusters: ii = i + 1 if ii % 100 == 0: logger.info("[%d/%d] %.1f%% ..." % (ii, num, 100*ii/num)) - haloem = HaloEmission(gamma=hdict["gamma"], n_e=hdict["n_e"], + haloem = HaloEmission(gamma=hdict["gamma"], n_e=hdict["spectrum"], B=hdict["B"], radius=hdict["Rhalo"], redshift=hdict["z"]) emissivity = haloem.calc_emissivity(frequencies=self.frequencies) @@ -496,8 +496,7 @@ class GalaxyClusters: logger.info("Converting halos data into a Pandas DataFrame ...") keys = list(self.halos[0].keys()) - # Ignore these items: gamma, n_e, template - for k in ["gamma", "n_e", "template"]: + for k in ["gamma", "spectrum", "spectrum_fiducial", "template"]: keys.remove(k) halos_df = dictlist_to_dataframe(self.halos, keys=keys) dataframe_to_csv(halos_df, outfile, clobber=clobber) |