diff --git a/clmm/theory/parent_class.py b/clmm/theory/parent_class.py index 5dd65b7ab..433c56214 100644 --- a/clmm/theory/parent_class.py +++ b/clmm/theory/parent_class.py @@ -778,7 +778,7 @@ def eval_surface_density(self, r_proj, z_cl, r_mis=None, verbose=False, backend= validate_argument(locals(), "r_proj", "float_array", argmin=0) validate_argument(locals(), "z_cl", float, argmin=0) if r_mis is not None: - validate_argument(locals(), "r_mis", float, argmin=0) + validate_argument(locals(), "r_mis", float, argmin=0, eqmin=True) if self.halo_profile_model == "einasto" and verbose: print(f"Einasto alpha = {self._get_einasto_alpha(z_cl=z_cl)}") @@ -855,7 +855,7 @@ def eval_excess_surface_density(self, r_proj, z_cl, r_mis=None, verbose=False, b validate_argument(locals(), "r_proj", "float_array", argmin=0) validate_argument(locals(), "z_cl", float, argmin=0) if r_mis is not None: - validate_argument(locals(), "r_mis", float, argmin=0) + validate_argument(locals(), "r_mis", float, argmin=0, eqmin=True) if self.halo_profile_model == "einasto" and verbose: print(f"Einasto alpha = {self._get_einasto_alpha(z_cl=z_cl)}")