Skip to content

Commit

Permalink
slightly increase astrodata test tolerances
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-simpson committed Jan 11, 2025
1 parent 2cdf771 commit a199735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gemini_instruments/test/test_astrodata_descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ def test_descriptor(instr, filename, descriptor, value):
else:
mvalue = method()
if type(value) in FLOAT_TYPES or type(mvalue) in FLOAT_TYPES:
assert mvalue == pytest.approx(value, abs=1e-7, rel=1e-6)
assert mvalue == pytest.approx(value, abs=1e-7, rel=1e-5)
elif isinstance(value, list):
assert len(value) == len(mvalue)
for v, mv in zip(value, mvalue):
if type(v) in FLOAT_TYPES or type(mv) in FLOAT_TYPES:
assert mv == pytest.approx(v, abs=1e-7, rel=1e-6)
assert mv == pytest.approx(v, abs=1e-7, rel=1e-5)
else:
assert v == mv

0 comments on commit a199735

Please sign in to comment.