Commit f5d0938f authored by payno's avatar payno
Browse files

hdf5scan move get_valid_entries to public

parent 74591f8e
Pipeline #22270 failed with stages
in 1 minute and 9 seconds
......@@ -197,14 +197,14 @@ class HDF5TomoScan(TomoScanBase):
:param file_path:
:return:
"""
entries = HDF5TomoScan._get_valid_entries(file_path)
entries = HDF5TomoScan.get_valid_entries(file_path)
if len(entries) == 0:
return None
else:
return entries[index]
@staticmethod
def _get_valid_entries(file_path: str) -> tuple:
def get_valid_entries(file_path: str) -> tuple:
"""
return the list of 'Nxtomo' entries at the root level
......@@ -252,7 +252,7 @@ class HDF5TomoScan(TomoScanBase):
else:
master_file = HDF5TomoScan.get_master_file(scan_path=directory)
if master_file:
entries = HDF5TomoScan._get_valid_entries(file_path=master_file)
entries = HDF5TomoScan.get_valid_entries(file_path=master_file)
return len(entries) > 0
@docstring(TomoScanBase.is_abort)
......
......@@ -72,7 +72,7 @@ class ScanFactory:
elif HDF5TomoScan.is_tomoscan_dir(scan_path):
scans = []
master_file = HDF5TomoScan.get_master_file(scan_path=scan_path)
entries = HDF5TomoScan._get_valid_entries(master_file)
entries = HDF5TomoScan.get_valid_entries(master_file)
for entry in entries:
scans.append(HDF5TomoScan(scan=scan_path, entry=entry,
index=None))
......
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