mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-16 12:33:41 +02:00
bugs in derived_array and gamma_method fixed which caused odd behaviour
in connection with irregular monte carlo chains
This commit is contained in:
parent
17f7753225
commit
0644ecf9aa
2 changed files with 3 additions and 3 deletions
|
@ -86,7 +86,7 @@ def derived_array(func, data, **kwargs):
|
|||
for name in new_names:
|
||||
d_extracted[name] = []
|
||||
for i_dat, dat in enumerate(data):
|
||||
ens_length = new_idl_d[name][-1] - new_idl_d[name][0] + 1
|
||||
ens_length = len(new_idl_d[name])
|
||||
d_extracted[name].append(np.array([_expand_deltas_for_merge(o.deltas[name], o.idl[name], o.shape[name], new_idl_d[name]) for o in dat.reshape(np.prod(dat.shape))]).reshape(dat.shape + (ens_length, )))
|
||||
|
||||
for i_val, new_val in np.ndenumerate(new_values):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue