Skip to content

Commit

Permalink
Merge pull request #347 from dsavransky/surveysim_updates
Browse files Browse the repository at this point in the history
fixing intermittent error caused by attempting to index koMap beyond …
  • Loading branch information
dsavransky authored Apr 21, 2023
2 parents ac601f8 + 2bf69d4 commit 229d9d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions EXOSIMS/Prototypes/SurveySimulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2013,6 +2013,11 @@ def observation_characterization(self, sInd, mode):
startTime = (
TK.currentTimeAbs.copy() + mode["syst"]["ohTime"] + Obs.settlingTime
)

# if we're beyond mission end, bail out
if startTime >= TK.missionFinishAbs:
return characterized, fZ, systemParams, SNR, intTime

startTimeNorm = (
TK.currentTimeNorm.copy() + mode["syst"]["ohTime"] + Obs.settlingTime
)
Expand Down

0 comments on commit 229d9d8

Please sign in to comment.