-
Notifications
You must be signed in to change notification settings - Fork 47
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
Cleanup pypesto/profile/profile_next_guess.py #1167
Conversation
Some cleanup / simplification of pypesto/profile/profile_next_guess.py
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## develop #1167 +/- ##
===========================================
- Coverage 88.16% 84.39% -3.78%
===========================================
Files 79 148 +69
Lines 5257 11667 +6410
===========================================
+ Hits 4635 9846 +5211
- Misses 622 1821 +1199
|
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.
Thanks for the cleanup. If we remove the increase
line search, perhaps we should also change the Literal/remove it? But not quite sure whether it is not used somewhere else.
@@ -62,14 +62,15 @@ def next_guess( | |||
return fixed_step( | |||
x, par_index, par_direction, profile_options, problem | |||
) | |||
elif update_type == 'adaptive_step_order_0': |
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.
I know that it technically makes no difference, but elif would highlight more, that these comparisons belong to each other wouldn't it?
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.
Do they really belong together? I'd say no. Fixed step: we are good to go. Adaptive step; we need to set order
. I think this makes it clearer.
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.
one can argue like that as well. No strong preference here 👍🏼
It's still there! See other comment. |
Some cleanup / simplification of pypesto/profile/profile_next_guess.py