kevin218 / Eureka

Eureka! is a data reduction and analysis pipeline intended for time-series observations with JWST.
https://eurekadocs.readthedocs.io/
MIT License
56 stars 43 forks source link

Ms no longer used in starry models; batman `w` parameter no long must be between (0,360); minor tweaks #625

Closed taylorbell57 closed 4 months ago

taylorbell57 commented 4 months ago

The requirement for Ms was always a nuisance since it could potentially crash the code if Ms was larger than allowed by Kepler's 3rd law. The only reason it was added was so that starry would be able to accept both a/Rs and Porb, but Everett Schlawin pointed out to me that we can just set Mp=0 and then solve for Ms which is way easier and removes that nuisance parameter.

Some folks allow negative omega values, and sometimes its useful to use a prior like Intial Guess +/- 180 so that your fits don't end up bi-modal if they're near 0 or 360.

Finally, sometimes curve_fit will fail to converge with the default maxfev value, so I just increased it by 10x which solved my problems. Might be worth changing this to scipy.optimize.minimize and using Powell instead since that's been working so well for us elsewhere.