Skip to content

Commit

Permalink
Fix Quantity comparison which has changed behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
talister committed Feb 8, 2024
1 parent c548ee7 commit f76aed7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/etc/etc.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def photons_from_source(
standard_filter = self._convert_filtername(filtername)
band = self._map_filter_to_standard(mag_filter)
print(band.meta.get("expr", "Unknown"), type(source_spec))
source_spec = source_spec or self._vega
if source_spec is None:
source_spec = self._vega
if type(source_spec) != SourceSpectrum:
raise ETCError("Invalid sourcespec; must be a SourceSpectrum")

Expand Down

0 comments on commit f76aed7

Please sign in to comment.