mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-06-30 08:49:28 +02:00
feat: derived observable array mode works now, test added
This commit is contained in:
parent
52867fb033
commit
02d8f469eb
2 changed files with 19 additions and 18 deletions
|
@ -1157,7 +1157,7 @@ def derived_observable(func, data, array_mode=False, **kwargs):
|
|||
for name in new_cov_names:
|
||||
g_extracted[name] = []
|
||||
for i_dat, dat in enumerate(data):
|
||||
g_extracted[name].append(np.array([obs.covobs[name]]).reshape(dat.shape + (1, )))
|
||||
g_extracted[name].append(np.array([o.covobs[name].grad for o in dat.reshape(np.prod(dat.shape))]).reshape(dat.shape + (1, )))
|
||||
|
||||
for i_val, new_val in np.ndenumerate(new_values):
|
||||
new_deltas = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue