mirror of
https://github.com/fjosw/pyerrors.git
synced 2026-04-05 07:49:48 +02:00
[Fix] Removed the possibility to create an Obs from data on several replica (#258)
* [Fix] Removed the possibility to create an Obs from data on several replica * [Fix] extended tests and corrected a small bug in the previous commit --------- Co-authored-by: Simon Kuberski <simon.kuberski@cern.ch>
This commit is contained in:
parent
dd4f8525f7
commit
17792418ed
6 changed files with 111 additions and 61 deletions
|
|
@ -529,7 +529,8 @@ def import_dobs_string(content, full_output=False, separator_insertion=True):
|
|||
deltas.append(repdeltas)
|
||||
idl.append(repidl)
|
||||
|
||||
res.append(Obs(deltas, obs_names, idl=idl))
|
||||
obsmeans = [np.average(deltas[j]) for j in range(len(deltas))]
|
||||
res.append(Obs([np.array(deltas[j]) - obsmeans[j] for j in range(len(obsmeans))], obs_names, idl=idl, means=obsmeans))
|
||||
res[-1]._value = mean[i]
|
||||
_check(len(e_names) == ne)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue