Skip to content

Commit

Permalink
Fixed iminuit warning when fixing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesGaessler committed Nov 2, 2023
1 parent 3932811 commit fe80248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafe2/core/minimizers/iminuit_minimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _get_iminuit(self):
self.__iminuit.fixed[_i] = self._minimizer_param_dict["fix_" + _par_name_i]
self.__iminuit.limits[_i] = self._minimizer_param_dict["limit_" + _par_name_i]
_par_err_i = self._minimizer_param_dict.get("error_" + _par_name_i, None)
if _par_err_i is not None:
if _par_err_i is not None and _par_err_i > 0.0:
self.__iminuit.errors[_i] = _par_err_i
self.__iminuit.errordef = self.errordef
# set logging level in iminuit arcording to the root logger
Expand Down

0 comments on commit fe80248

Please sign in to comment.