From eddca6e37e3d8079a4f2bf4653588dd98f789f37 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 27 Feb 2019 22:00:44 +0800 Subject: Several minor cleanups --- fg21sim/extragalactic/clusters/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fg21sim/extragalactic') diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index cfeaf80..201ceed 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -453,8 +453,8 @@ class GalaxyClusters: the corresponding halo within the ``self.halos``. The templates are normalized to have *mean* value of 1. """ - idx_kept = [idx for idx, cdict in enumerate(self.halos) - if cdit["genuine"] and not cdict.get("drop", False)] + idx_kept = [idx for idx, hdict in enumerate(self.halos) + if hdit["genuine"] and not hdict.get("drop", False)] num = len(idx_kept) logger.info("Draw template images for %d halos ..." % num) for i, idx in enumerate(idx_kept): -- cgit v1.2.2