Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed stellarphot so it can run under current astropy (and numpy, when including previous PR) #92

Merged
merged 8 commits into from
Jun 6, 2023

Conversation

JuanCab
Copy link
Contributor

@JuanCab JuanCab commented May 31, 2023

Fixed the problem with running under astropy >5.0 (turns out it was a output generated by to astropy.modelling.model_to_fit_params which was not in a simple form that could be converted into a flatten array after being passed it to scipy.optimize.leastsq). Fixed by flattening the structure before passing it in. Also updated the documentation and environment setup to reflect no longer need to be limited to astropy 5.0.

Code has also been updated in several places to properly handle use of the release version of astrowidgets (currently 0.3.0) instead of the development version.

Closes #91

JuanCab added 2 commits May 31, 2023 16:05
…utput generated by to astropy.modelling.model_to_fit_params which was not in a simple form when we then passed it to scipy.optimize.leastsq).
Copy link
Contributor

@mwcraig mwcraig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JuanCab -- just a couple typos to fix before merging!

CHANGES.rst Outdated Show resolved Hide resolved
stellarphot/analysis/transit_fitting.py Outdated Show resolved Hide resolved
stellarphot/analysis/transit_fitting.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change in non-public fitting API in astropy >=5.1 broke transit fitting
2 participants