Skip to content
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

Update .zattrs file and test result #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jingjingwu1225
Copy link
Contributor

No description provided.

):
array[
channel, idx, x : x + subdat_size[-2], y : y + subdat_size[-1]
] = subdat[channel : channel + 1, ...][0]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the same loop repeated twice or am I missing something?

(shape0[0] / shape[0] - 1) * vxh * 0.5,
(shape0[1] / shape[1] - 1) * vxw * 0.5,
float(2**n - 1) * vxh * 0.5,
float(2**n - 1) * vxw * 0.5,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what the issue with webknossos is?

The thing it that you may be fixing things for webknossos, but it actually mis-registers the layer (if we're following the spec) and will break things down in our own code in the future. So I am a bit against this change.

Copy link
Contributor Author

@jingjingwu1225 jingjingwu1225 Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Yael, I don't have the error message but it should have something to do with the multiscale part in .zattrs file that doesn't match with what webknossos expects. One example is that if there are both even and odd numbers for the size of image, as the resolution level increases, the difference between 2 axis gets larger, and causes a mismatch in x and y direction for the scale part in coordinateTransformation. I do agree we shouldn't modify the code as what webknossos accepts. I'll undo the change here. Thanks. @balbasty

Copy link
Member

@kabilar kabilar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jingjingwu1225, I am a bit out of the loop, but could you please explain the motivation for these changes? Thank you.

Copy link
Member

@kabilar kabilar Nov 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this pull request is focused on changes to the dark-field images, so I would suggest that this light-sheet test file be updated in a separate pull request.

@jingjingwu1225 jingjingwu1225 force-pushed the update-zattrs branch 2 times, most recently from 938dc22 to 3ba6cd9 Compare November 19, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants