-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correct handling of strategy 0 for Minuit optimizer (#2277)
* Properly guard the `strategy` option for the Minuit optimizer in the case that `strategy` option of 0 is used. Without checking `self.strategy is not None` the `if self.strategy` for self.strategy==0 evaluates to truthiness of False, giving the wrong value of `not do_grad` for do_grad of False. - Amends PR #1183 * Use the corrected behavior to improve testing of default in test_minuit_strategy_global. * Add Daniel Werner to contributors list.
- Loading branch information
1 parent
f8f3c96
commit b81d903
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ Contributors include: | |
- Jerry Ling | ||
- Nathan Simpson | ||
- Beojan Stanislaus | ||
- Daniel Werner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters