Skip to content

Commit

Permalink
Allow r_mis=0
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Niemiec committed Jul 19, 2024
1 parent 09973c0 commit d886a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clmm/theory/parent_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}")
Expand Down Expand Up @@ -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)}")
Expand Down

0 comments on commit d886a12

Please sign in to comment.