Skip to content

Commit

Permalink
Merge pull request #111 from wbalmer/max_res
Browse files Browse the repository at this point in the history
small bugfix in setup_retrieval without spectra
  • Loading branch information
tomasstolker authored Sep 24, 2024
2 parents c37667c + 8b82be0 commit 487d2e0
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 487d2e0

Please sign in to comment.