Skip to content

Commit

Permalink
Fix minus sign and use atol
Browse files Browse the repository at this point in the history
Fix minus sign applied to a list and set an atol so we can compare
values close to zero.
  • Loading branch information
santisoler committed Oct 3, 2024
1 parent 8162082 commit a6b70ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion choclo/tests/test_prism_magnetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ def test_gradiometry_symmetry_on_faces(self, sample_prism, direction, forward_fu
forward_func(e, n, u, *sample_prism, *magnetization)
for (e, n, u) in zip(easting, northing, upward)
)
npt.assert_allclose(results[0], -results[1:])
npt.assert_allclose(-results[0], results[1:], atol=1e-23)


class TestMagGradiometryFiniteDifferences:
Expand Down

0 comments on commit a6b70ac

Please sign in to comment.