Skip to content

Commit

Permalink
fix bounds as dict
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmarshall committed May 7, 2024
1 parent 9224c19 commit 15de1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pygama/math/unbinned_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def fit_unbinned(func: Callable, data: np.ndarray, guess:np.ndarray =None,
m = Minuit(cost_func, *guess)
if bounds is not None:
if isinstance(bounds, dict):
for arg, key in bounds:
for arg, key in bounds.items():
m.limits[arg] = key
else:
m.limits = bounds
Expand Down

0 comments on commit 15de1ca

Please sign in to comment.