mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
fix: multi dim fits fixed in least squares. Test added. (#160)
Co-authored-by: Simon Kuberski <simon.kuberski@uni-muenster.de>
This commit is contained in:
parent
cb289a55ec
commit
82cd2f11ea
2 changed files with 12 additions and 1 deletions
|
@ -554,7 +554,7 @@ def _combined_fit(x, y, func, silent=False, **kwargs):
|
|||
for key in key_ls:
|
||||
if not callable(funcd[key]):
|
||||
raise TypeError('func (key=' + key + ') is not a function.')
|
||||
if len(xd[key]) != len(yd[key]):
|
||||
if np.asarray(xd[key]).shape[-1] != len(yd[key]):
|
||||
raise Exception('x and y input (key=' + key + ') do not have the same length')
|
||||
for i in range(100):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue