Skip to content

Commit

Permalink
maint: use halomod branch
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Jul 24, 2024
1 parent e55ea02 commit 12f08c7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ tests =
pre-commit
mpmath>=1.0.0
colossus>=1.2.1
halomod
halomod@git+https://github.com/halomod/halomod
dev =
hmf[docs,tests]
cosmo =
Expand Down
5 changes: 0 additions & 5 deletions setup.py

This file was deleted.

13 changes: 0 additions & 13 deletions tests/test_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,6 @@
from astropy.cosmology import LambdaCDM, w0waCDM, wCDM

from hmf.density_field.transfer import Transfer
from hmf.density_field.transfer_models import EH_BAO

# def rms(a):
# print(a)
# print("RMS: ", np.sqrt(np.mean(np.square(a))))
# return np.sqrt(np.mean(np.square(a)))

#
# def check_close(t, t2, fit):
# t.update(transfer_model=fit)
# assert np.mean(np.abs((t.power - t2.power) / t.power)) < 1


@pytest.fixture
Expand All @@ -41,8 +30,6 @@ def test_updates(transfers, name, val):

def test_halofit():
t = Transfer(lnk_min=-20, lnk_max=20, dlnk=0.05, transfer_model="EH")
print(EH_BAO._defaults)
print("in test_transfer, params are: ", t.transfer_params)
assert np.isclose(t.power[0], t.nonlinear_power[0])
assert 5 * t.power[-1] < t.nonlinear_power[-1]

Expand Down

0 comments on commit 12f08c7

Please sign in to comment.