diff --git a/beast/physicsmodel/grid_and_prior_weights.py b/beast/physicsmodel/grid_and_prior_weights.py index 5105d7cb..4978efe0 100644 --- a/beast/physicsmodel/grid_and_prior_weights.py +++ b/beast/physicsmodel/grid_and_prior_weights.py @@ -195,6 +195,7 @@ def compute_age_mass_metallicity_weights( cur_masses = _tgrid_single_age["M_ini"] mass_grid_weights = compute_mass_grid_weights(cur_masses) mass_prior_weights = mass_prior(cur_masses) + else: # must be a single mass for this age,z combination # set mass weight to zero to remove this point from the grid