Skip to content

Commit 152f304

Browse files
kjy5github-actions[bot]
authored andcommitted
Hatch static analysis
1 parent d4fc37f commit 152f304

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ephys_link/bindings/ump_binding.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,28 @@ def get_cli_name() -> str:
4747
@override
4848
async def get_manipulators(self) -> list[str]:
4949
device_ids = list(map(str, self._ump.list_devices()))
50-
50+
5151
# Shortcut for empty device list.
5252
if len(device_ids) == 0:
5353
return []
54-
55-
first_device_axis_count = self._get_device(device_ids[0]).n_axes()
54+
55+
first_device_axis_count = self._get_device(device_ids[0]).n_axes()
5656

5757
# Currently only supports using uMp-4 XOR uMp-3. Throw error if both are connected.
5858
if any(self._get_device(device_id).n_axes() != first_device_axis_count for device_id in device_ids): # pyright: ignore [reportUnknownArgumentType, reportUnknownMemberType]
5959
msg = "uMp-4 and uMp-3 cannot be used at the same time."
6060
raise RuntimeError(msg)
61-
61+
6262
return device_ids
6363

6464
@override
6565
async def get_axes_count(self) -> int:
6666
device_ids = await self.get_manipulators()
67-
67+
6868
# If no manipulators are connected, return 0.
6969
if len(device_ids) == 0:
7070
return 0
71-
71+
7272
# If multiple manipulators are connected, return the number of axes of the first one.
7373
return self._get_device(device_ids[0]).n_axes()
7474

0 commit comments

Comments
 (0)