Skip to content

FeaturesLineWidget #200

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert changes in base
  • Loading branch information
zoccoler committed Jul 29, 2023
commit 460721381ac0b244531bd2ff84ef1d0059eb8404
1 change: 1 addition & 0 deletions src/napari_matplotlib/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def current_z(self) -> int:
"""
Current z-step of the napari viewer.
"""
return self.viewer.dims.current_step[0]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return self.viewer.dims.current_step[0]

Copy link
Member

Choose a reason for hiding this comment

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

I assume the line self.viewer.dims.current_step[-3] is a bug fix below for datasets that have >= 4 dimensions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can drop it for now since it does no affect this PR anymore. It had to do with other dimensions, yes

if self.viewer.dims.ndim < 3:
return slice(None)
return self.viewer.dims.current_step[-3]
Expand Down