Skip to content

Commit

Permalink
test:fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielaBreitman committed Jul 16, 2024
1 parent b488c2a commit a5761a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_power.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ def test_prefactor_fnc():
def test_k_weights_fnc():
pb = PowerBox(50, dim=3, pk=lambda k: 1.0 * k**-2.0, boxlength=1.0, b=1)
with warnings.catch_warnings():
warnings.filterwarnings(
"ignore", message="divide by zero encountered in divide"
)
warnings.filterwarnings("ignore", message="invalid value encountered in divide")
p_ki0, k_ki0 = get_power(pb.delta_x(), pb.boxlength, k_weights=ignore_zero_ki)
p, k = get_power(pb.delta_x(), pb.boxlength, k_weights=ignore_zero_absk)

Expand Down

0 comments on commit a5761a4

Please sign in to comment.