mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02: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:
|
for name in obs_a.names:
|
||||||
if obs_a.shape[name] != obs_b.shape[name]:
|
if obs_a.shape[name] != obs_b.shape[name]:
|
||||||
raise Exception('Shapes of ensemble', name, 'do not fit')
|
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:
|
if obs_a.reweighted is True:
|
||||||
warnings.warn("The first observable is already reweighted.", RuntimeWarning)
|
warnings.warn("The first observable is already reweighted.", RuntimeWarning)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue