Skip to content

Commit

Permalink
Update specutils/utils/wcs_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen authored Sep 23, 2024
1 parent eac8b2b commit e32bcc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specutils/utils/wcs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def refraction_index(wavelength, method='Morton2000', co2=None):
VALID_METHODS = ['Griesen2006', 'Edlen1953', 'Edlen1966', 'Morton2000',
'PeckReeder1972', 'Ciddor1996']
assert isinstance(method, str), 'method must be a string'
if method != 'Griesen2006' and wavelength.min() < 250 * u.nm:
if method != 'Griesen2006' and wavelength.min() < 200 * u.nm:
raise ValueError("The chosen method is invalid for wavelengths below 250 nm."
" 'Griesen2006' is the only option for this wavelength range -"
" see the specutils.utils.wcs_utils.refraction_index docstring"
Expand Down

0 comments on commit e32bcc3

Please sign in to comment.