Skip to content

Commit

Permalink
Merge pull request #273 from GenevieveBuckley/fix-typo
Browse files Browse the repository at this point in the history
Fix typo in function name _segment_slice_widget
  • Loading branch information
constantinpape authored Nov 9, 2023
2 parents 763a2a3 + 71181d4 commit c9094bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions micro_sam/sam_annotator/annotator_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


@magicgui(call_button="Segment Slice [S]")
def _segment_slice_wigdet(v: Viewer, box_extension: float = 0.1) -> None:
def _segment_slice_widget(v: Viewer, box_extension: float = 0.1) -> None:
shape = v.layers["current_object"].data.shape[1:]
position = v.cursor.position
z = int(position[0])
Expand Down Expand Up @@ -301,7 +301,7 @@ def annotator_3d(
prompt_widget = vutil.create_prompt_menu(prompts, labels)
v.window.add_dock_widget(prompt_widget)

v.window.add_dock_widget(_segment_slice_wigdet)
v.window.add_dock_widget(_segment_slice_widget)
v.window.add_dock_widget(_autosegment_widget)

v.window.add_dock_widget(_segment_volume_widget)
Expand All @@ -314,7 +314,7 @@ def annotator_3d(

@v.bind_key("s")
def _seg_slice(v):
_segment_slice_wigdet(v)
_segment_slice_widget(v)

@v.bind_key("Shift-s")
def _seg_volume(v):
Expand Down

0 comments on commit c9094bb

Please sign in to comment.