Skip to content

Commit

Permalink
Bug: Enum members need .value to extract the unit value
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtsmith authored and Dries Van De Putte committed May 9, 2024
1 parent 3d0aae5 commit a274097
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pahfit/features/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
'absorption': {'wavelength', 'fwhm', 'tau', 'geometry'}}

# Parameter default units: flux density/intensity/power (other units determined on fit)
PARAM_UNITS = {'temperature': UNITS.temperature,
'wavelength': UNITS.wavelength,
'fwhm': UNITS.wavelength}
PARAM_UNITS = {'temperature': UNITS.temperature.value,
'wavelength': UNITS.wavelength.value,
'fwhm': UNITS.wavelength.value}


class UniqueKeyLoader(yaml.SafeLoader):
Expand Down

0 comments on commit a274097

Please sign in to comment.