From ab00ba4ff010e11d40e292186d5bc15a52a9b90a Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 17 Jan 2019 15:15:24 +0800 Subject: clusters/main: Fix _calc_cluster_info() --- fg21sim/extragalactic/clusters/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim/extragalactic') diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index 8fcf013..2f27c07 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -178,7 +178,7 @@ class GalaxyClusters: Calculate some basic information for each cluster. """ logger.info("Calculating basic information for each cluster ...") - for cdict in enumerate(self.catalog): + for cdict in self.catalog: z, mass = cdict["z"], cdict["mass"] Rvir = helper.radius_virial(mass, z) # [kpc] DA = COSMO.DA(z) # [Mpc] -- cgit v1.2.2