dsavransky / EXOSIMS

Simulator for exoplanet direct imaging space missions
BSD 3-Clause "New" or "Revised" License
25 stars 35 forks source link

saturation dMag fix for occulters w/o speckle noise #334

Closed CoreySpohn closed 1 year ago

CoreySpohn commented 1 year ago

Describe your changes

In the TargetList prototype the calc_saturation_dMag function always assumed that the denominator of the integration time used the model from Nemati. But the calc_intTime function treats occulters differently and assumes no speckle noise. That same condition was added to the calc_saturation_dMag function so that the values returned are infinite instead of assuming speckle noise.

In GarrettCompleteness there was an error in the handling of infinite smax values which occur for occulters. Added a check that changes infinite smax values to the max float value.

Type of change

Reference any relevant issues (don't forget the #)

N/A

Checklist before requesting a review