Skip to content

Commit

Permalink
TST: Fix Astropy minversion for Lorentz1D result change
Browse files Browse the repository at this point in the history
The patch was backported and is now in Astropy 6.3.1,
which should be the minversion.
  • Loading branch information
olebole committed Sep 1, 2024
1 parent 7ecbab7 commit a81729e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ginga/tests/test_iqcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from ginga.util.iqcalc import have_scipy # noqa
from ginga.util.iqcalc_astropy import have_photutils # noqa

ASTROPY_LT_7_0 = not minversion("astropy", "7.0.dev")
ASTROPY_LT_6_1_3 = not minversion("astropy", "6.1.3")


@pytest.mark.parametrize(
Expand Down Expand Up @@ -287,7 +287,7 @@ def setup_class(self):
self.fwhm_funcs = (self.iqcalc.calc_fwhm_gaussian,
self.iqcalc.calc_fwhm_moffat,
self.iqcalc.calc_fwhm_lorentz)
if ASTROPY_LT_7_0:
if ASTROPY_LT_6_1_3:
lorentz_ans = (1.9570, 1.8113)
else:
# https://github.com/astropy/astropy/pull/16794
Expand Down

0 comments on commit a81729e

Please sign in to comment.