Skip to content
Snippets Groups Projects
Commit 93faafe7 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

fix checking scalar datasets

parent 2736bfc8
No related branches found
No related tags found
1 merge request!610Add a pytest to run a dict of CALLAB test runs before releases
......@@ -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}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment