diff options
Diffstat (limited to 'fg21sim')
-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 a29c474..6442e2a 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -394,7 +394,9 @@ class GalaxyClusters: # Pad the merger events to be same length nmax = max([cdict["merger_num"] for cdict in self.catalog]) for cdict in self.catalog: - num = cdict["merger_num"] + num = len(cdict["merger_z"]) + if num == nmax: + continue cdict.update([ ("merger_mass1", cdict["merger_mass1"] + [None]*(nmax-num)), ("merger_mass2", cdict["merger_mass2"] + [None]*(nmax-num)), |