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

todo: do a better job determining the third axis #6

Open
tlambert03 opened this issue Jun 8, 2024 · 0 comments
Open

todo: do a better job determining the third axis #6

tlambert03 opened this issue Jun 8, 2024 · 0 comments

Comments

@tlambert03
Copy link
Member

this code is a lil' silly:

# set the visibility of the last non-channel dimension
sizes = list(self._data_wrapper.sizes())
if self._channel_axis is not None:
sizes = [x for x in sizes if x != self._channel_axis]
if len(sizes) >= 3:
dim3 = sizes[-3]
self._dims_sliders.set_dimension_visible(dim3, True if ndim == 2 else False)

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

No branches or pull requests

1 participant