Commit ff8f612e authored by payno's avatar payno
Browse files

[converter][h5_to_nx] fix issue when looking for titles since we add a new title entry for zseries.

Anyway this is safer to have a clear definition of this
parent 0f4c87d9
......@@ -896,7 +896,16 @@ def _get_entry_type(
title = h5py_read_dataset(entry["title"])
except Exception as e:
_logger.error("fail to find title for %s, skip this group" %
for step, titles in zip(AcquisitionStep, scan_titles):
step_titles = {
AcquisitionStep.INITIALIZATION: scan_titles.init_titles,
AcquisitionStep.DARK: scan_titles.dark_titles,
AcquisitionStep.REFERENCE: scan_titles.ref_titles,
AcquisitionStep.PROJECTION: scan_titles.proj_titles,
AcquisitionStep.ALIGNMENT: scan_titles.align_titles,
for step, titles in step_titles.items():
for title_start in titles:
if title.startswith(title_start):
return step
Supports Markdown
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