diff options
-rw-r--r-- | fg21sim/extragalactic/clusters/halo.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fg21sim/extragalactic/clusters/halo.py b/fg21sim/extragalactic/clusters/halo.py index 6adfba5..8fd49c5 100644 --- a/fg21sim/extragalactic/clusters/halo.py +++ b/fg21sim/extragalactic/clusters/halo.py @@ -430,16 +430,16 @@ class HaloSingle: events = [] tree = self.mtree while tree: - if (tree.major and tree.minor and - tree.minor.node.mass >= self.merger_mass_th and - tree.major.node.z <= self.zmax): + if (tree.main and tree.sub and + tree.sub.data["mass"] >= self.merger_mass_th and + tree.main.data["z"] <= self.zmax): events.append({ - "M_main": tree.major.node.mass, - "M_sub": tree.minor.node.mass, - "z": tree.major.node.z, - "age": tree.major.node.age + "z": tree.main.data["z"], + "age": tree.main.data["age"], + "M_main": tree.main.data["mass"], + "M_sub": tree.sub.data["mass"], }) - tree = tree.major + tree = tree.main return events def _coef_acceleration(self, z): |