Skip to content

Commit

Permalink
set atol for more assert_allclose
Browse files Browse the repository at this point in the history
  • Loading branch information
htz1992213 committed Feb 5, 2024
1 parent e8a094c commit fe7c547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_msd.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def test_msd_straight_forward(self):
)

def test_msd_fft(self):
assert_allclose(self.fft, msd_fft(self.arr1))
assert_allclose(msd_straight_forward(self.arr2), msd_fft(self.arr2))
assert_allclose(self.fft, msd_fft(self.arr1), atol=1e-12)
assert_allclose(msd_straight_forward(self.arr2), msd_fft(self.arr2), atol=1e-12)

def test_create_position_arrays(self):
assert_allclose(
Expand Down

0 comments on commit fe7c547

Please sign in to comment.