-
Notifications
You must be signed in to change notification settings - Fork 11
Description
What happened?
Using the Bruker->NWB converter in neuroconv (as here), I noticed that my single-plane Bruker imaging data was being flagged as multiplane.
Tracked this down to brukertiffimagingextractor._determine_imaging_is_volumetric(), which assumes that the metadata flag 'zDevice' == 1 means this is a volumetric scan, which is a sensible thing to assume. However my single plane image data as well as my multiplane image data both have this value as 1.
In my experience, a reliable way to tell what the scan type is from the .xml metadata is the Sequence type. This can be things like:
'TSeries Timed Element' - XYT image data
'TSeries ZSeries Element' - XYZT image data
'ZSeries' - XYZ data (not a time series)
'Single' - XY image
and probably other things too that I don't acquire.
Steps to Reproduce
from roiextractors.extractors.tiffimagingextractors.brukertiffimagingextractor import _determine_imaging_is_volumetric
print(_determine_imaging_is_volumetric(bruker_file_dir))Traceback
TrueOperating System
macOS
Python Executable
Conda
Python Version
3.10
Package Versions
No response
Code of Conduct
Yes
Duplicated Issue Check
No