Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfan1996 committed Jul 20, 2024
1 parent 4c98720 commit b9bf381
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clmm/theory/parent_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,11 @@ def _integrand_surface_density_mis_hernquist(self, theta, r, r_mis, r_s):
def _eval_mean_surface_density_miscentered(self, r_proj, z_cl, r_mis, use_backend):
# pylint: disable=invalid-name
res = np.zeros_like(r_proj)
norm = 1
for i, r in enumerate(r_proj):
r_lower = 0 if i == 0 else r_proj[i - 1]

if use_backend:
norm = 1

integrand = self._integrand_mean_surface_density_mis
res[i] = dblquad(integrand, r_lower, r, 0, np.pi, args=(r_mis, z_cl))[0]

Expand Down

0 comments on commit b9bf381

Please sign in to comment.