Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy5 committed Jan 30, 2024
1 parent 7951265 commit e0b100c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/ephys_link/platforms/new_scale_pathfinder_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from __future__ import annotations

import json
from sys import exit
from typing import TYPE_CHECKING
from urllib import request
from urllib.error import URLError
Expand Down Expand Up @@ -197,9 +198,9 @@ def _get_shank_count(self, manipulator_id: str) -> com.ShankCountOutputData:
if probe["Id"] == manipulator_id:
if "ShankCount" in probe:
return com.ShankCountOutputData(probe["ShankCount"], "")
else:
# Default to 1.0 if shank count is not found
return com.ShankCountOutputData(1, "")

# Default to 1.0 if shank count is not found
return com.ShankCountOutputData(1, "")

return com.ShankCountOutputData(-1, "Unable to find manipulator")

Expand All @@ -219,11 +220,11 @@ def _bypass_calibration(self, manipulator_id: str) -> str:
return ""

def _set_can_write(
self,
manipulator_id: str,
can_write: bool,
hours: float,
sio: socketio.AsyncServer,
self,
manipulator_id: str,
can_write: bool,
hours: float,
sio: socketio.AsyncServer,
) -> com.StateOutputData:
raise NotImplementedError

Expand Down

0 comments on commit e0b100c

Please sign in to comment.