-
Notifications
You must be signed in to change notification settings - Fork 17
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
Split Stack resets coordinates? #143
Comments
Hi, thanks for reporting. @melonora do you know if there is a hook for Split Stack? I think that calling the function you wrote to transfer the metadata would fix this issue. |
@harrig12 @LucaMarconato there is no callback other than a new layer being added as far as I know. However, we can potentially overload the call with the |
Thanks a lot @melonora! |
Sure, here's an example zarr The affine transformation on B is:
In this example, I have 4 channels in B, but there may be anywhere from 1-40 Thanks! 💃 |
Thanks for providing the sample data! I will get on it |
Hi @harrig12, Just to give an update. I opened #136 to support multiple spatialdata objects. As a follow up PR I can fix the issue that you have as I have added a callback function when a layer gets inserted. Could you tell me whether you are using Based on napari documentation:
|
I'm using |
Hey spatialdata devs @melonora @LucaMarconato napari_bug_split_image_480.movContext: this is a subset (15 x 5000 x 5000) from a much larger sdata object (15, 44470, 73167). |
Thanks for reporting. Apparently the transformation metadata is lost for the newly created layer. We should check if there is a callback in napari we can use to update the metadata. |
I have a SpatialData with two images, a and b. Each image is mapped to two coordinate system: global and aligned, with the following mapping:
a -> global: identity
b -> global: identity
a -> aligned: identity
b -> aligned: affine
in the viewer, when I open the aligned images, things look good, but if I rightclick image b and use Split Stack to separate out the channels, then my aligned coordinated system seems to be ignored, and the channels all get reset to global. Mean (or other) projections don't seem to have this issue.
The text was updated successfully, but these errors were encountered: