Skip to content

Commit

Permalink
fixed equal comparison of float
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer authored Jul 5, 2024
1 parent 7eccc8c commit 8498031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/dflowfm/test_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def test_write_netcdf_with_custom_fillvalue_correctly_writes_fillvalue():
values = mesh2d_face_z[:]
data = values[:].data

assert (data[:] == fill_value).all()
assert np.allclose(data[:], fill_value)
assert mesh2d_face_z._FillValue == pytest.approx(fill_value)

dataset.close()
Expand Down

0 comments on commit 8498031

Please sign in to comment.