Skip to content

Commit 31a9529

Browse files
committed
rcurve reasonable tolerance
1 parent bc97234 commit 31a9529

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pymap3d/tests/test_rcurve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"lat,curvature", [(0, A), (90, 0), (-90, 0), (45.0, 4517590.87884893), (-45, 4517590.87884893)]
1313
)
1414
def test_rcurve_parallel(lat, curvature):
15-
assert rcurve.parallel(lat) == approx(curvature, abs=1e-9)
15+
assert rcurve.parallel(lat) == approx(curvature, abs=1e-9, rel=1e-6)
1616

1717

1818
def test_numpy_parallel():
1919
pytest.importorskip("numpy")
20-
assert rcurve.parallel([0, 90]) == approx([A, 0], abs=1e-9)
20+
assert rcurve.parallel([0, 90]) == approx([A, 0], abs=1e-9, rel=1e-6)
2121

2222

2323
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)