Commit 7e6b4608 authored by payno's avatar payno
Browse files

[h5_to_nx] handle zserie

- add a new parameter in settings 'H5_ZSERIE_INIT_TITLES'
  will be merge with 'H5_INIT_TITLES' when h5_to_nx is call
- split _Acquisition into a base class (_BaseAcquisition and _ZSerieAcquisition). PR of ID15 data will need to be rework due to this I guess.
- _ZSerieAcquisition is a serie of _StandardAcquisition. 'write_as_nxtomo' is now only part of StandardAcquisition
parent 1f20f46c
......@@ -49,6 +49,7 @@ from nxtomomill.settings import (
H5_REF_TITLES,
H5_DARK_TITLES,
H5_INIT_TITLES,
H5_ZSERIE_INIT_TITLES,
)
from nxtomomill.converter import h5_to_nx, H5FileKeys, H5ScanTitles
from tomoscan.esrf.hdf5scan import HDF5TomoScan
......@@ -214,6 +215,11 @@ def main(argv):
default=",".join(H5_INIT_TITLES),
help="Titles corresponding to init scans",
)
parser.add_argument(
"--init_zserie_titles",
default=",".join(H5_ZSERIE_INIT_TITLES),
help="Titles corresponding to zserie init scans",
)
parser.add_argument(
"--dark_titles",
default=",".join(H5_DARK_TITLES),
......@@ -275,6 +281,7 @@ def main(argv):
)
scan_titles = H5ScanTitles(
init_titles=conv(options.init_titles),
init_zserie_titles=conv(options.init_zserie_titles),
dark_titles=conv(options.dark_titles),
ref_titles=conv(options.ref_titles),
proj_titles=conv(options.proj_titles),
......
This diff is collapsed.
......@@ -66,13 +66,16 @@ H5_ACQ_EXPO_TIME_KEYS = ("acq_expo_time",)
H5_INIT_TITLES = (
"pcotomo:basic",
"tomo:basic",
"tomo:zseries",
"tomo:fullturn",
"sequence_of_scans",
"tomo:halfturn",
)
"""if a scan starts by one of those string then is considered as
initialization scan"""
H5_ZSERIE_INIT_TITLES = ("tomo:zseries",)
"""specific titles for zserie. Will extend H5_INIT_TITLES"""
H5_DARK_TITLES = ("dark images", "dark")
"""if a scan starts by one of those string then is considered as
dark scan"""
......
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