-
Notifications
You must be signed in to change notification settings - Fork 7
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
bump ndtiff version to >1.12.1 #124
Comments
Maybe we can finally get rid of the workaround in this: Also this may be related to #105. |
Correct, you shouldn't need to reshape the array at the end anymore.
|
Not sure what the breaking changes (if any) are... Edit: It happened in this PR: micro-manager/NDStorage#111, which doesn't seem to change how offline python reading works. |
At first glance (v2.0.0) calling from ndtiff import Dataset # v2.0.0
# pytest dataset with PTCYX=(2, 3, 2, 7, 128, 128)
dataset = Dataset("MM20_pycromanager/mm2.0-20210713_pm0.13.2_2p_3t_2c_7z_1/")
dataset.as_array(position=0).shape
# (2, 7, 3, 128, 128)=CZTYX
dataset.as_array().shape
# (2, 2, 7, 3, 128, 128)=PCZTYX |
Axis sorting is only implemented for the "current" NDTiff format version whereas Just tested that axes are correctly sorted in PTCZ order for a new pycromanager dataset. We should update the iohub PM test dataset with data from the "current" format. |
P.S. we could extend the |
I agree that we should add the new format to tests. However the old one should still be supported to be able to read existing data. Then there will need to be branching logic for different versions like we have for OME-TIFF MMStacks? Does |
Yes, the |
This is what iohub is currently using. However using this method to access arrays from old format datasets still needs reordering axes and reshaping the array (current behavior), while for the new format:
|
Just added axis sorting for v2 datasets in micro-manager/NDStorage#117. This way, you can use the same code for v2 or v3 ndtiff datasets. This means that you won't need to do axis sorting in iohub anymore. However, you'll still need to pad the array with singleton dimensions if they are missing in the dataset (as iohub currently does). |
ndtiff==1.12.0
and below have a bug which returned the wrong shape of dask arrays, see micro-manager/NDStorage#107The text was updated successfully, but these errors were encountered: