Skip to content

Commit

Permalink
RUFF
Browse files Browse the repository at this point in the history
  • Loading branch information
rmatsuda committed Dec 10, 2024
1 parent 6334ff8 commit 888ccc6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 9 additions & 2 deletions invesalius/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@
DEFAULT_TRACKER = SELECT

NDICOMPORT = b"COM1"
NDI_IP = ["P9-13715.local", "P9-13719.local", "P9-25026.local"]
NDI_IP = ["P9-13715.local", "P9-13719.local", "P9-25026.local"]

TRACKERS = [
_("Claron MicronTracker"),
Expand Down Expand Up @@ -1126,7 +1126,14 @@
PULSE_DURATION_IN_MILLISECONDS = 0.2

# Robot
ROBOT_IPS = ["192.168.200.251", "143.107.220.251", "169.254.153.251", "127.0.0.1", "192.168.1.6", "169.254.128.103"]
ROBOT_IPS = [
"192.168.200.251",
"143.107.220.251",
"169.254.153.251",
"127.0.0.1",
"192.168.1.6",
"169.254.128.103",
]

MTMS_RADIUS = 15

Expand Down
8 changes: 6 additions & 2 deletions invesalius/gui/task_navigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,9 @@ def OnRobotTrackTargetButton(self, evt=None, ctrl=None):
# objective set by another button; hence this check.
if self.robot.objective == RobotObjective.TRACK_TARGET:
self.robot.SetObjective(RobotObjective.NONE)
Publisher.sendMessage("Robot to Neuronavigation: Update robot warning", robot_warning="")
Publisher.sendMessage(
"Robot to Neuronavigation: Update robot warning", robot_warning=""
)

# 'Move away' button
def EnableRobotMoveAwayButton(self, enabled=False):
Expand All @@ -1926,7 +1928,9 @@ def OnRobotMoveAwayButton(self, evt=None, ctrl=None):
# objective set by another button; hence this check.
if self.robot.objective == RobotObjective.MOVE_AWAY_FROM_HEAD:
self.robot.SetObjective(RobotObjective.NONE)
Publisher.sendMessage("Robot to Neuronavigation: Update robot warning", robot_warning="")
Publisher.sendMessage(
"Robot to Neuronavigation: Update robot warning", robot_warning=""
)

# 'Free drive' button
def EnableRobotFreeDriveButton(self, enabled=False):
Expand Down

0 comments on commit 888ccc6

Please sign in to comment.