improve management if a scan contains both a tango .h5 and .edf frames
currently we can end up with the following:
Traceback (most recent call last):
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/bin/nxtomomill", line 8, in <module>
sys.exit(main())
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/__main__.py", line 261, in main
status = launcher.execute(sys.argv)
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/__main__.py", line 159, in execute
super().execute(argv=argv)
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/silx/utils/launcher.py", line 294, in execute
return command.execute(command_argv)
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/silx/utils/launcher.py", line 128, in execute
status = func(argv)
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/app/h52nx.py", line 382, in main
from_h5_to_nx(
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/converter/hdf5/hdf5converter.py", line 814, in from_h5_to_nx
return converter.convert()
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/converter/hdf5/hdf5converter.py", line 239, in convert
self._entries_created = self.write()
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/converter/hdf5/hdf5converter.py", line 672, in write
raise e
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/converter/hdf5/hdf5converter.py", line 660, in write
new_entries = acquisition.write_as_nxtomo(
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/converter/hdf5/acquisition/baseacquisition.py", line 155, in write_as_nxtomo
nx_tomos = self.to_NXtomos(
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/converter/hdf5/acquisition/standardacquisition.py", line 1027, in to_NXtomos
self._preprocess_registered_entries()
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/converter/hdf5/acquisition/standardacquisition.py", line 659, in _preprocess_registered_entries
self._preprocess_registered_entry(url, type_)
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/converter/hdf5/acquisition/standardacquisition.py", line 501, in _preprocess_registered_entry
self._treate_valid_camera(
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/converter/hdf5/acquisition/standardacquisition.py", line 363, in _treate_valid_camera
n_frame = self.__get_data_from_camera(
File "/scisoft/tomotools/x86_64/cuda11/2023_06_27/lib/python3.8/site-packages/nxtomomill/converter/hdf5/acquisition/standardacquisition.py", line 298, in __get_data_from_camera
raise ValueError(err)
ValueError: dataset /7.1/instrument/pcolinux/data is expected to be 3D when 1D found.
example file: /data/visitor/ihme25/id19/20230728/RAW_DATA/no3_gnathymenus_sp_height2/no3_gnathymenus_sp_height2_0001