Skip to content

Commit

Permalink
scipy dep names fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
itrharrison committed Sep 9, 2024
1 parent dadd66e commit b427e5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion skypy/halos/mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def _sigma_squared(M, k, Pk, growth_function, cosmology):
top_hat = 3. * (np.sin(k * R) - k * R * np.cos(k * R)) / ((k * R)**3.)
integrand = Pk * np.power(top_hat * k, 2)

return Dz2 * integrate.simps(integrand, k) / (2. * np.pi**2.)
return Dz2 * integrate.simpson(integrand, k) / (2. * np.pi**2.)


def _dlns_dlnM(sigma, M):
Expand Down
4 changes: 2 additions & 2 deletions skypy/halos/tests/test_quenching.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_environment_quenched():
quenched = environment_quenched(n, p)
number_quenched = Counter(quenched)[True]

p_value = stats.binom_test(number_quenched, n=n, p=p,
p_value = stats.binomtest(number_quenched, n=n, p=p,
alternative='two-sided')
assert p_value > 0.01

Expand All @@ -28,6 +28,6 @@ def test_mass_quenched():
quenched = mass_quenched(halo_mass, offset, width)
number_quenched = Counter(quenched)[True]

p_value = stats.binom_test(number_quenched, n=n, p=0.5,
p_value = stats.binomtest(number_quenched, n=n, p=0.5,
alternative='two-sided')
assert p_value > 0.01

0 comments on commit b427e5e

Please sign in to comment.