From 89dbf3c08c48d71d8a4eea14fb473df882c0d855 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 18 Nov 2022 16:22:08 +0000 Subject: [PATCH] fix: error handling in obs.correlate improved. --- pyerrors/obs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/obs.py b/pyerrors/obs.py index 02d16103..54b3109c 100644 --- a/pyerrors/obs.py +++ b/pyerrors/obs.py @@ -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: