mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
derived_observable now raises an error, if the same ensemble name has been used for deltas and covobs
This commit is contained in:
parent
35c1a0e1bd
commit
70d941092c
1 changed files with 2 additions and 0 deletions
|
@ -1153,6 +1153,8 @@ def derived_observable(func, data, **kwargs):
|
|||
|
||||
new_covobs = {name: Covobs(0, allcov[name], name, grad=new_grad[name]) for name in new_grad}
|
||||
|
||||
if not set(new_covobs.keys()).isdisjoint(new_deltas.keys()):
|
||||
raise Exception('The same name has been used for deltas and covobs!')
|
||||
new_samples = []
|
||||
new_means = []
|
||||
new_idl = []
|
||||
|
|
Loading…
Add table
Reference in a new issue