Fix for SimplexLSQFitter with scipy 1.9.0rc1#13413
Conversation
|
|
||
| if isinstance(fitter, SimplexLSQFitter): | ||
| kwargs = {'maxiter': 77, 'verblevel': 1, 'acc': 1e-6} | ||
| kwargs = {'maxiter': 79, 'verblevel': 1, 'acc': 1e-6} |
There was a problem hiding this comment.
Note that any maxiter >= 79 will "fix" the failure with scipy 1.9.0rc1; however, I am unsure if this is addressing the fundamental issue.
|
Looking into this further, I have determined that scipy/scipy#15259, changed a simple print to raising an actual warning. We were already handling this and raising our own warning here: astropy/astropy/modeling/optimizers.py Lines 242 to 245 in 1e75f29 astropy/astropy/modeling/tests/test_fitters.py Line 1004 in 1e75f29 |
ebf5045 to
345cb80
Compare
pllim
left a comment
There was a problem hiding this comment.
Better get this in before the RC comes out.
If you are worried about not fixing the fundamental issue, please open a follow-up issue to track it.
Thanks!
|
William reminded me that I should probably check against the RC job, so I enabled cron job but cancelling the irrelevant ones. |
|
RC job passed. Thanks! |
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
|
@WilliamJamieson , any chance you could manually backport this to v5.0.x ? Thanks! |
….0rc1 Fix for SimplexLSQFitter with scipy 1.9.0rc1
…413-on-v5.1.x Backport PR #13413 on branch v5.1.x (Fix for SimplexLSQFitter with scipy 1.9.0rc1)
Description
The scipy 1.9.0rc1 release is causing a warning to a fitting test, see #13400. This PR attempts to resolve this issue via increasing the iteration limit.
Fixes #13400
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
Extra CIlabel.no-changelog-entry-neededlabel. If this is a manual backport, use theskip-changelog-checkslabel unless special changelog handling is necessary.astropy-botcheck might be missing; do not let the green checkmark fool you.backport-X.Y.xlabel(s) before merge.