207-noncomplex-fits #244

Merged
dominik merged 4 commits from 207-noncomplex-fits into master 2024-02-11 17:40:51 +00:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 1401aa4141 - Show all commits

View File

@ -469,7 +469,6 @@ class FitRoutine(object):
corr: np.ndarray = None, corr: np.ndarray = None,
partial_corr: np.ndarray = None, partial_corr: np.ndarray = None,
): ):
print(data.complex_type)
if err is None: if err is None:
err = [0] * len(p) err = [0] * len(p)
@ -523,6 +522,7 @@ class FitRoutine(object):
return self.result return self.result
def _calc_error(jac, chi, nobs, nvars): def _calc_error(jac, chi, nobs, nvars):
# copy of scipy.curve_fit to calculate covariance # copy of scipy.curve_fit to calculate covariance
# noinspection PyTupleAssignmentBalance # noinspection PyTupleAssignmentBalance

View File

@ -99,7 +99,6 @@ class FitResultCreator:
fun_kwargs['complex_mode'] = 0 fun_kwargs['complex_mode'] = 0
_y = check_complex(model.func(p_final, _x, **fun_kwargs), actual_mode, data_mode) _y = check_complex(model.func(p_final, _x, **fun_kwargs), actual_mode, data_mode)
print(_y)
fun_kwargs['complex_mode'] = actual_mode fun_kwargs['complex_mode'] = actual_mode