-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: invalid literal for int() 'Inf' for SI.hStackManager.framesPerSlice #1108
Comments
Hey @k1o0, Thank you for the detailed description and example file. This sounds like a bug with the |
Thanks for working so quickly to fix this issue! We are using a Thorlabs 2p-RAM with the Dual-Plane Imaging Add-On, running Vidrio ScanImage 2020.1.2. The tiff file itself wasn't altered, however the ScanImage code was locally adapted slightly to include 2 additional fields in the SI header: SI.hDisplay.circleOffset and SI.hDisplay.circleDiameter. The file I provided was a single scanfield session in single-plane mode. |
OK, thanks a lot. |
One last question, does the file has an accompanying XML file? In that case, could you share it as well? [EDIT] Ah, that's a Bruker specific thing, forget about it. |
What happened?
I am trying to convert ScanImage tif files acquired with a mesoscope to NWB, however I get the following ValueError:
I think
SI.hStackManager.framesPerSlice
is Inf whenSI.hStackManager.enable
is False, i.e. when we are doing single plane imaging. It is an irrelevant variable unless you are doing volumetric imaging (i.e. multiple z-depths), in which cases you can define a number of frames to scan per slice. Am I using the correct converter class here or is this something that is not accounted for yet in the code?Steps to Reproduce
Traceback
No response
Operating System
Windows
Python Executable
Python
Python Version
3.10
Package Versions
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: