-
Notifications
You must be signed in to change notification settings - Fork 2
38 add tests for minimizer bumps #41
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
Conversation
| def test_available_methods(self, minimizer: Bumps) -> None: | ||
| # When Then Expect | ||
| assert minimizer.available_methods() == ['amoeba', 'de', 'dream', 'newton', 'scipy.leastsq', 'lm', 'pt'] | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pt method in Bumps is experimental and shouldn't really be used. Also, why is scipy here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, we will then have to filter the raw output from bumps.
I guess it is called scipy.leastsq because it utilizes the scipy implementation. From the bumps code it appears that LevenbergMarquardtFit is called scipy.leastsq but there is also an internal version that is referred to as lm. The name for this minimizer will be left as is.
…/EasyScience/EasyScience into 38-add-tests-for-minimizer-bumps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK. Good improvement to the code.
PR related fixes ruff, be quiet. renamed Job->job directory name 38 add tests for minimizer bumps (easyscience#41) * tests and adjustments * handling circular dependency * Updated minimizer names * Made ruff happy * pr response * more consistent usage of enum --------- Co-authored-by: henrikjacobsenfys <henrik.jacobsen.fys@gmail.com> removed unnecessary empty line minimizer consolidation (easyscience#45) * minimizer consolidation * pr response
Tests for Bumps.
Changed order of method in Bumps to have the public methods appear first. No changes to logic
Changed how imports of
new_parameteris done inminimizer_lm_fit.pyto prevent circular imports when importingFitter.