Skip to content

Commit

Permalink
Change menu and function names
Browse files Browse the repository at this point in the history
  • Loading branch information
shrivaths16 committed May 31, 2024
1 parent 791d2e2 commit 4062624
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sleap/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,9 +784,9 @@ def new_instance_menu_action():
)
add_menu_item(
labelMenu,
"delete frame limit predictions",
"Delete Predictions beyond Frame Limit...",
self.commands.deleteFrameLimitPredictions,
"delete max instance predictions",
"Delete Predictions beyond Max Instances...",
self.commands.deleteInstanceLimitPredictions,
)

### Tracks Menu ###
Expand Down
6 changes: 3 additions & 3 deletions sleap/gui/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,9 @@ def deleteLowScorePredictions(self):
"""Gui for deleting instances below some score threshold."""
self.execute(DeleteLowScorePredictions)

def deleteFrameLimitPredictions(self):
def deleteInstanceLimitPredictions(self):
"""Gui for deleting instances beyond some number in each frame."""
self.execute(DeleteFrameLimitPredictions)
self.execute(DeleteInstanceLimitPredictions)

def completeInstanceNodes(self, instance: Instance):
"""Adds missing nodes to given instance."""
Expand Down Expand Up @@ -2438,7 +2438,7 @@ def ask(cls, context: CommandContext, params: dict) -> bool:
return super().ask(context, params)


class DeleteFrameLimitPredictions(InstanceDeleteCommand):
class DeleteInstanceLimitPredictions(InstanceDeleteCommand):
@staticmethod
def get_frame_instance_list(context: CommandContext, params: dict):
count_thresh = params["count_threshold"]
Expand Down

0 comments on commit 4062624

Please sign in to comment.