-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: add write_tiff
export to OME-TIFF, include full metadata as StructuredAnnotation
#216
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #216 +/- ##
==========================================
+ Coverage 95.17% 95.27% +0.09%
==========================================
Files 17 18 +1
Lines 2362 2433 +71
==========================================
+ Hits 2248 2318 +70
- Misses 114 115 +1 ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #216 will not alter performanceComparing Summary
|
@phisanti, not sure if you get these github pings. But this is at a state where you might want to try it out:
then import nd2
with nd2.ND2File('your.nd2') as f:
f.write_tiff('output.ome.tif') |
ah: one feature i still need to implement is exporting multi-position ND acquisitions to multi-series tiff |
@cgohlke, if I could borrow a moment of your time, i would greatly appreciate your feedback on the |
to clarify, I specifically mean the best way to do this while using a data iterator rather than reading the full position into memory, while also considering that as I iterate through frames in the nd2 file, different stage positions will likely not be contiguous |
The use of the iterator looks correct to me as long as it returns frames of same shape and dtype. To write a second series, call
|
thanks!
oops, I'm sorry that indeed wasn't you! that was someone else on imagesc (sorry, got mixed up in all the various posts I was searching). Ok great, then it sounds like I shouldn't do anything special on the ome_types side to make sure the output is ascii-encodable? |
write_tiff
export to OME-TIFF, include full metadata as StructuredAnnotation
closes #215 and adds an export to ome-tiff