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

More robust calculation of "z-step_um" for ndtiff datasets #263

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

ieivanov
Copy link
Contributor

@ieivanov ieivanov commented Dec 6, 2024

The calculations of z-step_um fails if the dataset has only a single z slice. In that case, ZPosition_um_Intended exists in the metadata, but the dataset does not have images at z_idx = 1. Here I've wrapped the calculation of z-step_um in a try/except statement which would catch both cases.

@ahillsley please confirm that this PR fixes your issue and approve it.

@ieivanov ieivanov requested review from ziw-liu and ahillsley December 6, 2024 18:53
@ziw-liu ziw-liu added bug Something isn't working μManager Micro-Manager files and metadata labels Dec 7, 2024
Copy link
Collaborator

@ziw-liu ziw-liu left a comment

Choose a reason for hiding this comment

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

Diff reads good! I'll leave the actual testing to @ahillsley.

Copy link

@ahillsley ahillsley left a comment

Choose a reason for hiding this comment

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

Confirmed that it works on the 2024_12_06_ops0003 dataset

@ieivanov ieivanov merged commit 05428df into main Dec 11, 2024
7 checks passed
@ieivanov ieivanov deleted the bugfix_ndtiff_zstack branch December 11, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working μManager Micro-Manager files and metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants