From e7487a5e7c017ae4f1d90b09a2000fbccf9b1edd Mon Sep 17 00:00:00 2001 From: Daniel Gilman Date: Mon, 27 Jan 2025 17:47:30 -0600 Subject: [PATCH] set bound mass for PS --- pyHalo/realization_extensions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyHalo/realization_extensions.py b/pyHalo/realization_extensions.py index 11c2194..68623ff 100644 --- a/pyHalo/realization_extensions.py +++ b/pyHalo/realization_extensions.py @@ -51,6 +51,8 @@ def add_prompt_cusps(self, mass_fraction): halo.z, halo.is_subhalo, halo.lens_cosmo, args, halo._truncation_class, halo._concentration_class, halo.unique_tag) + if halo.is_subhalo: + prompt_cusp.set_bound_mass(halo.bound_mass) halo._rescale_norm *= (1 - mass_fraction) halo_list.append(halo) halo_list.append(prompt_cusp)