mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
fix: error handling in obs.correlate improved.
This commit is contained in:
parent
6f4dd6c46c
commit
89dbf3c08c
1 changed files with 1 additions and 1 deletions
|
@ -1401,7 +1401,7 @@ def correlate(obs_a, obs_b):
|
|||
"""
|
||||
|
||||
if sorted(obs_a.names) != sorted(obs_b.names):
|
||||
raise Exception('Ensembles do not fit')
|
||||
raise Exception(f"Ensembles do not fit {set(sorted(obs_a.names)) ^ set(sorted(obs_b.names))}")
|
||||
if len(obs_a.cov_names) or len(obs_b.cov_names):
|
||||
raise Exception('Error: Not possible to correlate Obs that contain covobs!')
|
||||
for name in obs_a.names:
|
||||
|
|
Loading…
Add table
Reference in a new issue