diff options
author | Aaron LI <aly@aaronly.me> | 2018-01-02 08:52:49 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-01-02 09:18:16 +0800 |
commit | 52e1684d9b5f67e5bc5da9e88c3d8e63fa1bc512 (patch) | |
tree | 5610351d11ffc27d3b05f785bfcb31aab36bb09e /fg21sim/extragalactic/clusters/main.py | |
parent | 655e9e5e0c342af57c942fe36e7baf3c60d8c21c (diff) | |
download | fg21sim-52e1684d9b5f67e5bc5da9e88c3d8e63fa1bc512.tar.bz2 |
clusters/psformalism: sample_z_m() return tuple of lists instead of dataframe
Diffstat (limited to 'fg21sim/extragalactic/clusters/main.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index 0251662..90aaf75 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -116,8 +116,10 @@ class GalaxyClusters: psform.calc_dndlnm() psform.write() counts = psform.calc_cluster_counts(coverage=self.sky.area) - self.catalog, self.catalog_comment = psform.sample_z_m(counts) logger.info("Simulated cluster catalog of counts %d." % counts) + z, mass, self.comments = psform.sample_z_m(counts) + self.catalog = pd.DataFrame(np.column_stack([z, mass]), + columns=["z", "mass"]) def _process_catalog(self): """ |