Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/cverstege/opt/pycharm-2019.1.3/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/home/cverstege/src/kafe2/examples/001_linear_regression/linear_regression.py", line 38, in <module>
line_fit.report(asymmetric_parameter_errors=True)
File "/home/cverstege/src/kafe2/kafe2/fit/xy/fit.py", line 1109, in report
super(XYFit, self).report(output_stream=output_stream, asymmetric_parameter_errors=asymmetric_parameter_errors)
File "/home/cverstege/src/kafe2/kafe2/fit/_base/fit.py", line 599, in report
self._update_parameter_formatters(update_asymmetric_errors=asymmetric_parameter_errors)
File "/home/cverstege/src/kafe2/kafe2/fit/_base/fit.py", line 111, in _update_parameter_formatters
for _fpf, _ape in zip(self._model_function.argument_formatters, self.asymmetric_parameter_errors):
File "/home/cverstege/src/kafe2/kafe2/fit/_base/fit.py", line 189, in asymmetric_parameter_errors
return self._fitter.asymmetric_fit_parameter_errors
File "/home/cverstege/src/kafe2/kafe2/core/fitters/nexus_fitter.py", line 145, in asymmetric_fit_parameter_errors
return self._minimizer.asymmetric_parameter_errors
File "/home/cverstege/src/kafe2/kafe2/core/minimizers/minimizer_base.py", line 111, in asymmetric_parameter_errors
self._par_asymm_err = self._calculate_asymmetric_parameter_errors()
File "/home/cverstege/src/kafe2/kafe2/core/minimizers/iminuit_minimizer.py", line 84, in _calculate_asymmetric_parameter_errors
_asymm_par_errs[_index, 0] = _minos_result_dict[_par_name]['lower']
KeyError: 'a'
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/cverstege/opt/pycharm-2019.1.3/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/home/cverstege/src/kafe2/examples/001_linear_regression/linear_regression.py", line 38, in <module>
line_fit.report(asymmetric_parameter_errors=True)
File "/home/cverstege/src/kafe2/kafe2/fit/xy/fit.py", line 1109, in report
super(XYFit, self).report(output_stream=output_stream, asymmetric_parameter_errors=asymmetric_parameter_errors)
File "/home/cverstege/src/kafe2/kafe2/fit/_base/fit.py", line 599, in report
self._update_parameter_formatters(update_asymmetric_errors=asymmetric_parameter_errors)
File "/home/cverstege/src/kafe2/kafe2/fit/_base/fit.py", line 111, in _update_parameter_formatters
for _fpf, _ape in zip(self._model_function.argument_formatters, self.asymmetric_parameter_errors):
File "/home/cverstege/src/kafe2/kafe2/fit/_base/fit.py", line 189, in asymmetric_parameter_errors
return self._fitter.asymmetric_fit_parameter_errors
File "/home/cverstege/src/kafe2/kafe2/core/fitters/nexus_fitter.py", line 145, in asymmetric_fit_parameter_errors
return self._minimizer.asymmetric_parameter_errors
File "/home/cverstege/src/kafe2/kafe2/core/minimizers/minimizer_base.py", line 111, in asymmetric_parameter_errors
self._par_asymm_err = self._calculate_asymmetric_parameter_errors()
File "/home/cverstege/src/kafe2/kafe2/core/minimizers/minimizer_base.py", line 66, in _calculate_asymmetric_parameter_errors
_min_parameters)
File "/home/cverstege/src/kafe2/kafe2/core/minimizers/minimizer_base.py", line 81, in _find_chi_2_cut
return brentq(f=_profile, a=low, b=high, xtol=self.tolerance)
File "/home/cverstege/.virtualenvs/kafe2/local/lib/python2.7/site-packages/scipy/optimize/zeros.py", line 756, in brentq
r = _zeros._brentq(f, a, b, xtol, rtol, maxiter, args, full_output, disp)
ValueError: f(a) and f(b) must have different signs