Skip to content

Commit

Permalink
Increase tolerance on matched difference test.
Browse files Browse the repository at this point in the history
This is temporary and only necessary due to a bug in smatch 0.10.1
in the sphdist function.
  • Loading branch information
taranu committed May 15, 2024
1 parent 603a17b commit 8177b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_diff_matched_tract_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def test_DiffMatchedTractCatalogTask(self):
np.savetxt(filename_diff_matched, row)

self.assertEqual(len(row), len(self.diff_matched))
self.assertFloatsAlmostEqual(row, self.diff_matched, rtol=1e-15)
self.assertFloatsAlmostEqual(row, self.diff_matched, atol=1e-8, rtol=1e-8)

self.task.config.coord_format.coords_spherical = not self.task.config.coord_format.coords_spherical
self.task.run(
Expand Down

0 comments on commit 8177b5f

Please sign in to comment.