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

Fix pypesto.profile.parameter_profile incorrectly assuming symmetric bounds #1166

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Oct 30, 2023

Use the correct bounds for checking whether we are done computing the profile.

Add test.

Closes #1165

…bounds

Use the correct bounds for checking whether we are done computing the profile.

Add test.

Closes #1165
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2023

Codecov Report

Merging #1166 (046b08f) into develop (160c2a8) will decrease coverage by 34.80%.
Report is 406 commits behind head on develop.
The diff coverage is 72.23%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff              @@
##           develop    #1166       +/-   ##
============================================
- Coverage    88.16%   53.37%   -34.80%     
============================================
  Files           79      148       +69     
  Lines         5257    11653     +6396     
============================================
+ Hits          4635     6220     +1585     
- Misses         622     5433     +4811     
Files Coverage Δ
pypesto/C.py 100.00% <100.00%> (ø)
pypesto/__init__.py 100.00% <100.00%> (ø)
pypesto/engine/__init__.py 100.00% <100.00%> (ø)
pypesto/engine/multi_process.py 93.10% <100.00%> (+0.79%) ⬆️
pypesto/engine/single_core.py 100.00% <100.00%> (ø)
pypesto/engine/task.py 100.00% <100.00%> (ø)
pypesto/ensemble/__init__.py 100.00% <100.00%> (ø)
pypesto/hierarchical/__init__.py 100.00% <100.00%> (ø)
pypesto/hierarchical/optimal_scaling/__init__.py 100.00% <100.00%> (ø)
...esto/hierarchical/spline_approximation/__init__.py 100.00% <100.00%> (ø)
... and 138 more

@dweindl dweindl self-assigned this Oct 30, 2023
Copy link
Collaborator

@PaulJonasJost PaulJonasJost left a comment

Choose a reason for hiding this comment

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

Thanks for noticing 👍🏼

) or (current_profile.ratio_path[-1] < options.ratio_min)
raise AssertionError("par_direction must be -1 or 1")
if not options.whole_path:
stop_profile |= current_profile.ratio_path[-1] < options.ratio_min
Copy link
Collaborator

Choose a reason for hiding this comment

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

not entirely sure why not an = but should be fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Because it's stop_due_to_bounds or stop_due_to_ratio, just = would ignore the stop_due_to_bounds part.

@dweindl dweindl merged commit 2ca056c into develop Oct 30, 2023
16 of 18 checks passed
@dweindl dweindl deleted the fix_1165_asym_prof branch October 30, 2023 20:34
@dweindl dweindl linked an issue Oct 31, 2023 that may be closed by this pull request
This was referenced Nov 15, 2023
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.

pypesto.profile.parameter_profile incorrectly assumes symmetric bounds
3 participants