Skip to content

Commit

Permalink
small bugfix in retri setup without spectra
Browse files Browse the repository at this point in the history
for cases where there is dense photometry but not spectroscopy, one may still want to run a retrieval. the bugfix patches an instance where a breaking error would be thrown by setup_retrieval when inc_spec=False
  • Loading branch information
wbalmer authored Sep 24, 2024
1 parent c37667c commit 8b82be0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion species/fit/retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -3583,7 +3583,8 @@ def setup_retrieval(

for spec_value in self.spectrum.values():
data_spec_res.append(spec_value[3])

if len(data_spec_res) == 0:
data_spec_res.append(40) # for photometry only retrievals
max_spec_res = max(data_spec_res)

if max_spec_res > 1000.0 and self.res_mode == "c-k":
Expand Down

0 comments on commit 8b82be0

Please sign in to comment.