Skip to content

Commit

Permalink
Fix _eval_excess_surface_density_miscentered; pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfan1996 committed Jul 17, 2024
1 parent 00b0069 commit 5673044
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions clmm/theory/parent_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ def _eval_surface_density_miscentered(self, r_proj, z_cl, r_mis, backend):
return res

def _integrand_surface_density_mis(self, theta, R, Roff, z_cl):
# pylint: disable=invalid-name
return self.eval_surface_density(np.sqrt(R*R + Roff*Roff - 2*R*Roff*np.cos(theta)), z_cl)

def _integrand_surface_density_mis_NFW(self, theta, R, Roff, r_s):
Expand Down Expand Up @@ -310,9 +311,9 @@ def _integrand_mean_surface_density_mis(self, R, z_cl, r_mis, backend):
# pylint: disable=invalid-name
return R * self._eval_surface_density_miscentered(R, z_cl, r_mis, backend)

def _eval_excess_surface_density_miscentered(self, r_proj, z_cl, r_mis):
return (self._eval_mean_surface_density_miscentered(r_proj, z_cl, r_mis)
- self._eval_surface_density_miscentered(r_proj, z_cl, r_mis))
def _eval_excess_surface_density_miscentered(self, r_proj, z_cl, r_mis, backend):
return (self._eval_mean_surface_density_miscentered(r_proj, z_cl, r_mis, backend)
- self._eval_surface_density_miscentered(r_proj, z_cl, r_mis, backend))

def _eval_2halo_term_generic(
self,
Expand Down

0 comments on commit 5673044

Please sign in to comment.