Skip to content

Commit

Permalink
hide left hemi when right requested, and vice-versa
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrofelder committed Jun 25, 2024
1 parent adff8ce commit 1f99138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brainreg/napari/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,11 @@ def check_orientation(event=None):
atlas = BrainGlobeAtlas(widget.atlas_key.value.name)
if brain_geometry.value == "hemisphere_l":
atlas.reference[
atlas.hemispheres == atlas.left_hemisphere_value
atlas.hemispheres == atlas.right_hemisphere_value
] = 0
elif brain_geometry.value == "hemisphere_r":
atlas.reference[
atlas.hemispheres == atlas.right_hemisphere_value
atlas.hemispheres == atlas.left_hemisphere_value
] = 0
input_orientation = getattr(widget, "data_orientation").value
data = getattr(widget, "img_layer").value.data
Expand Down

0 comments on commit 1f99138

Please sign in to comment.