mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 03:53:41 +02:00
fix: corrected bug that prevented combined fits with multiple x-obs in some cases (#241)
* fix: corrected bug that prevented combined fits with multiple x-obs in some cases * made test more complex * [Fix] Slightly increase tolerance for matrix function test. * Adapt test_merge_idx to compare lists --------- Co-authored-by: Simon Kuberski <simon.kuberski@cern.ch> Co-authored-by: Fabian Joswig <fjosw@users.noreply.github.com>
This commit is contained in:
parent
1d6f7f65c0
commit
4b1bb0872a
4 changed files with 21 additions and 7 deletions
|
@ -256,7 +256,7 @@ def least_squares(x, y, func, priors=None, silent=False, **kwargs):
|
|||
if sorted(list(funcd.keys())) != key_ls:
|
||||
raise ValueError('x and func dictionaries do not contain the same keys.')
|
||||
|
||||
x_all = np.concatenate([np.array(xd[key]) for key in key_ls])
|
||||
x_all = np.concatenate([np.array(xd[key]).transpose() for key in key_ls]).transpose()
|
||||
y_all = np.concatenate([np.array(yd[key]) for key in key_ls])
|
||||
|
||||
y_f = [o.value for o in y_all]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue