diff --git a/docs/pyerrors/fits.html b/docs/pyerrors/fits.html index 478d3026..598d94ce 100644 --- a/docs/pyerrors/fits.html +++ b/docs/pyerrors/fits.html @@ -324,9 +324,9 @@ 216 raise TypeError('func (key=' + key + ') is not a function.') 217 if np.asarray(xd[key]).shape[-1] != len(yd[key]): 218 raise ValueError('x and y input (key=' + key + ') do not have the same length') -219 for i in range(100): +219 for n_loc in range(100): 220 try: -221 funcd[key](np.arange(i), x_all.T[0]) +221 funcd[key](np.arange(n_loc), x_all.T[0]) 222 except TypeError: 223 continue 224 except IndexError: @@ -335,8 +335,8 @@ 227 break 228 else: 229 raise RuntimeError("Fit function (key=" + key + ") is not valid.") -230 n_parms = i -231 n_parms_ls.append(n_parms) +230 n_parms_ls.append(n_loc) +231 232 n_parms = max(n_parms_ls) 233 if not silent: 234 print('Fit with', n_parms, 'parameter' + 's' * (n_parms > 1)) @@ -1229,9 +1229,9 @@ Hotelling t-squared p-value for correlated fits. 217 raise TypeError('func (key=' + key + ') is not a function.') 218 if np.asarray(xd[key]).shape[-1] != len(yd[key]): 219 raise ValueError('x and y input (key=' + key + ') do not have the same length') -220 for i in range(100): +220 for n_loc in range(100): 221 try: -222 funcd[key](np.arange(i), x_all.T[0]) +222 funcd[key](np.arange(n_loc), x_all.T[0]) 223 except TypeError: 224 continue 225 except IndexError: @@ -1240,8 +1240,8 @@ Hotelling t-squared p-value for correlated fits. 228 break 229 else: 230 raise RuntimeError("Fit function (key=" + key + ") is not valid.") -231 n_parms = i -232 n_parms_ls.append(n_parms) +231 n_parms_ls.append(n_loc) +232 233 n_parms = max(n_parms_ls) 234 if not silent: 235 print('Fit with', n_parms, 'parameter' + 's' * (n_parms > 1))