mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
[fix] Corrected an error message (#257)
Co-authored-by: Simon Kuberski <simon.kuberski@cern.ch>
This commit is contained in:
parent
7eabd68c5f
commit
6ed6ce6113
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ def least_squares(x, y, func, priors=None, silent=False, **kwargs):
|
|||
if len(key_ls) > 1:
|
||||
for key in key_ls:
|
||||
if np.asarray(yd[key]).shape != funcd[key](np.arange(n_parms), xd[key]).shape:
|
||||
raise ValueError(f"Fit function {key} returns the wrong shape ({funcd[key](np.arange(n_parms), xd[key]).shape} instead of {xd[key].shape})\nIf the fit function is just a constant you could try adding x*0 to get the correct shape.")
|
||||
raise ValueError(f"Fit function {key} returns the wrong shape ({funcd[key](np.arange(n_parms), xd[key]).shape} instead of {np.asarray(yd[key]).shape})\nIf the fit function is just a constant you could try adding x*0 to get the correct shape.")
|
||||
|
||||
if not silent:
|
||||
print('Fit with', n_parms, 'parameter' + 's' * (n_parms > 1))
|
||||
|
|
Loading…
Add table
Reference in a new issue