diff --git a/.github/workflows/autoformat-and-lint.yml b/.github/workflows/autoformat-and-lint.yml index 6d5eee3..7dfdef0 100644 --- a/.github/workflows/autoformat-and-lint.yml +++ b/.github/workflows/autoformat-and-lint.yml @@ -28,7 +28,7 @@ jobs: - name: 🐍 Setup Python uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: '3.11' cache: 'pip' - name: 📦 Install dependencies diff --git a/src/ephys_link/platform_handler.py b/src/ephys_link/platform_handler.py index 326b989..185f660 100644 --- a/src/ephys_link/platform_handler.py +++ b/src/ephys_link/platform_handler.py @@ -154,6 +154,12 @@ def get_pos(self, manipulator_id: str) -> com.PositionalOutputData: # Get position and convert to unified space manipulator_pos = self._get_pos(manipulator_id) + + # Shortcut return for Pathfinder + if self.num_axes == -1: + return manipulator_pos + + # Error check and convert position to unified space if manipulator_pos["error"] != "": return manipulator_pos return com.PositionalOutputData( diff --git a/src/ephys_link/platforms/new_scale_pathfinder_handler.py b/src/ephys_link/platforms/new_scale_pathfinder_handler.py index c622869..94342d0 100644 --- a/src/ephys_link/platforms/new_scale_pathfinder_handler.py +++ b/src/ephys_link/platforms/new_scale_pathfinder_handler.py @@ -72,6 +72,7 @@ def __init__(self, port: int = 8080) -> None: super().__init__() self.num_axes = -1 + self.dimensions = [15, 15, 15] self.port = port