Closed BornKrefeld closed 6 months ago
thanks @BornKrefeld ... this is the same issue as #221 , but it looks like you have another different date format than @rysk-t did. Let me contact the folks at LIM who wrote the nd2sdk to get some input on how best to parse date information from an nd2 file
Description
Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.
Intention was to save a nd2 file to ome-tiff with interpreter nd2 and ome-tiff
What I Did
read nd2 and save as ome_types
import nd2 import ome_types
or open a file with nd2.ND2File
f = nd2.ND2File('Test2202_ecoliatcc25922_growthonchip_4chips_xy001.nd2')
with nd2.ND2File ( 'Test2202_ecoliatcc25922_growthonchip_4chips_xy001.nd2' ) as myfile: myfile.write_tiff ( 'myfile.ome.tiff', progress = True )
f.close() # don't forget to close when not using a context manager! f.closed # boolean, whether the file is closed