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 a5761a4 commit ee53653
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_power.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ 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="invalid value encountered in divide")
warnings.filterwarnings(
"ignore", message="One or more radial bins had no cells within it"
)
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 ee53653

Please sign in to comment.