Skip to content

Commit

Permalink
Force flux_unit to be unit instance
Browse files Browse the repository at this point in the history
instead of a str to be compatible with astropy v7.1
  • Loading branch information
pllim authored Jan 6, 2025
1 parent 63a63f2 commit 6e22f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synphot/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def integrate(self, wavelengths=None, integration_type=None, **kwargs):
raise exceptions.SynphotError(
'flux_unit cannot be used with unitless spectrum')
else:
self._validate_flux_unit(flux_unit, wav_only=True)
flux_unit = self._validate_flux_unit(flux_unit, wav_only=True)

x = self._validate_wavelengths(wavelengths)

Expand Down

0 comments on commit 6e22f52

Please sign in to comment.