From 93faafe70365403e5df79f99ccd6a19c8337421c Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Wed, 12 Jul 2023 11:45:29 +0200 Subject: [PATCH] fix checking scalar datasets --- tests/test_reference_runs/test_pre_deployment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_reference_runs/test_pre_deployment.py b/tests/test_reference_runs/test_pre_deployment.py index 79991e496..2b0506d38 100644 --- a/tests/test_reference_runs/test_pre_deployment.py +++ b/tests/test_reference_runs/test_pre_deployment.py @@ -65,7 +65,7 @@ def compare_datasets( h5_diff = [] for d in datasets: try: - if not np.allclose(file1[d][:], file2[d][:], equal_nan=True): + if not np.allclose(file1[d][()], file2[d][()], equal_nan=True): h5_diff.append(d) except ValueError as e: LOGGER.error(f"ValueError: {e}, {d}") -- GitLab