Commit e91a99a2 authored by payno's avatar payno

[third party] fix reading from tomwer_processes.h5 if h5py 3 used

parent 7dc8ce88
Pipeline #37864 passed with stages
in 5 minutes and 48 seconds
......@@ -16,6 +16,7 @@ import typing
import h5py
from silx.io.url import DataUrl
from tomoscan.io import HDF5File
from silx.io.utils import h5py_read_dataset
import logging
MAX_DEPTH = 2
......@@ -56,7 +57,7 @@ def is_process_node(node):
'NX_class' in node.attrs and
node.attrs['NX_class'] == "NXprocess" and
'program' in node and
node['program'] [()] == 'tomwer_dark_refs' and
h5py_read_dataset(node['program']) == 'tomwer_dark_refs' and
'version' in node and
'sequence_index' in node)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment