mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
correlate now also tests if idl for ensembles are identical
This commit is contained in:
parent
2fdc17ecd3
commit
aabac9d430
1 changed files with 2 additions and 0 deletions
|
@ -1162,6 +1162,8 @@ def correlate(obs_a, obs_b):
|
|||
for name in obs_a.names:
|
||||
if obs_a.shape[name] != obs_b.shape[name]:
|
||||
raise Exception('Shapes of ensemble', name, 'do not fit')
|
||||
if obs_a.idl[name] != obs_b.idl[name]:
|
||||
raise Exception('idl of ensemble', name, 'do not fit')
|
||||
|
||||
if obs_a.reweighted is True:
|
||||
warnings.warn("The first observable is already reweighted.", RuntimeWarning)
|
||||
|
|
Loading…
Add table
Reference in a new issue