Skip to content

Commit

Permalink
Allow nan equality in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-brown committed Jan 14, 2025
1 parent b832bb4 commit 466ee20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torax/tests/test_run_simulation_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ def check_equality(ds1: xr.Dataset, ds2: xr.Dataset):
# for other tests.
# rtol=0.0,
atol=5.0e-5,
# This is required to allow one of psi_right_grad_constraint and psi_right_constraint to be None
equal_nan=True,
):
diff = ov - gv
max_diff = np.abs(diff).max()
Expand Down

0 comments on commit 466ee20

Please sign in to comment.