From f2de323ad38127318c490f05e9e424d7babee2b0 Mon Sep 17 00:00:00 2001 From: Anthony Gagnon Date: Thu, 12 Dec 2024 11:46:02 -0500 Subject: [PATCH] fix data shape assertion so it recognizes dps --- scilpy/io/hdf5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scilpy/io/hdf5.py b/scilpy/io/hdf5.py index e31b9dad8..aa3766ae6 100644 --- a/scilpy/io/hdf5.py +++ b/scilpy/io/hdf5.py @@ -105,7 +105,7 @@ def reconstruct_sft_from_hdf5(hdf5_handle, group_keys, space=Space.VOX, for sub_key in hdf5_handle[group_key].keys(): if sub_key not in ['data', 'offsets', 'lengths']: data = hdf5_handle[group_key][sub_key] - if data.shape == hdf5_handle[group_key]['offsets']: + if data.shape == hdf5_handle[group_key]['offsets'].shape: # Discovered dps if load_dps: if i == 0 or not merge_groups: