-
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
pypesto.profile.parameter_profile
leaves Problem
in modified state if an error occurs during profiling
#1150
Comments
Would go with copy for now. Any strong arguments against that? |
No. Considering the cost of profiling, the copying-overhead should be negligible. |
yes, that's what I thought as well. 👍🏼 |
Somewhat independent issue, but related to the pseudo-code above: Would be good to issue some warning when attempting to compute profiles for fixed parameters instead of just not doing anything. |
You are right, just went through the profile code and noticed that as well. As it Is a somewhat independent issue, I will create a new issue and fix it as well 👍🏼 |
What happens:
parameter_profile
should either create a copy ofproblem
, or make sure that it is in the original state whenparameter_profile
exists, independent of any potential errors.The text was updated successfully, but these errors were encountered: