Skip to content

Commit

Permalink
State that MJy / sr unit restriction is temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
Dries Van De Putte committed May 9, 2024
1 parent 5705ddf commit 617a15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pahfit/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def _convert_spec_data(spec, z):
"""
if not spec.flux.unit.is_equivalent(units.intensity):
raise PAHFITModelError("PAHFIT only supports intensity units, i.e. convertible to MJy / sr.")
raise PAHFITModelError("For now, PAHFIT only supports intensity units, i.e. convertible to MJy / sr.")
y = spec.flux.to(units.intensity).value
x = spec.spectral_axis.to(u.micron).value
unc = (spec.uncertainty.array * spec.flux.unit).to(units.intensity).value
Expand Down

0 comments on commit 617a15a

Please sign in to comment.