From f24ca8cd4fcc6349f5b789c53586b37748751c2e Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 28 Jan 2019 17:29:58 +0800 Subject: clusters/main: Fix column names due to previous renaming --- fg21sim/extragalactic/clusters/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'fg21sim') 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) -- cgit v1.2.2