-
Notifications
You must be signed in to change notification settings - Fork 76
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
consider bitmap/contour_visible in logic for top image layer #2818
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -398,8 +398,12 @@ def layer_is_2d(layer): | |
return isinstance(layer, BaseData) and layer.ndim == 2 | ||
|
||
|
||
def layer_is_2d_or_3d(layer): | ||
return isinstance(layer, BaseData) and layer.ndim in (2, 3) | ||
|
||
|
||
def layer_is_image_data(layer): | ||
return layer_is_2d(layer) and not layer.meta.get(_wcs_only_label, False) | ||
return layer_is_2d_or_3d(layer) and not layer.meta.get(_wcs_only_label, False) | ||
Comment on lines
-402
to
+406
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doing a search of the codebase, I don't expect this to have any actual consequences anywhere. For Imviz, there is no ability to load cube data, and for cubeviz whenever we call this we really want to include cubes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But what about in the future when we want to support "flexible viz" and could possibly have 2D and 3D data both loaded and Imviz also loaded? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can rename this method if that would help (suggestions welcomed!)... but for now, all uses of it actually mean something that appears like an image on the screen (so either 2d or 3d image data). |
||
|
||
|
||
def layer_is_wcs_only(layer): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noting here (mostly for myself) that this will conflict with #2817.