From 4844230b209aaa93f6ec4eccecd72e6fc236ab7d Mon Sep 17 00:00:00 2001 From: Kenneth Yang Date: Tue, 17 Oct 2023 10:52:43 -0700 Subject: [PATCH] Fix index out of bounds --- pyproject.toml | 2 +- src/ephys_link/platforms/new_scale_handler.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d30f8c8..f479fbc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "ephys-link" -version = "0.9.15" +version = "0.9.16" license = { file = "LICENSE" } authors = [{ name = "Kenneth Yang", email = "kjy5@uw.edu" }] diff --git a/src/ephys_link/platforms/new_scale_handler.py b/src/ephys_link/platforms/new_scale_handler.py index 7f3d55c..6ec244b 100644 --- a/src/ephys_link/platforms/new_scale_handler.py +++ b/src/ephys_link/platforms/new_scale_handler.py @@ -135,7 +135,7 @@ def _platform_space_to_unified_space( self.dimensions[0] - platform_position[0], platform_position[2], platform_position[1], - self.dimensions[3] - platform_position[3], + self.dimensions[2] - platform_position[3], ] def _unified_space_to_platform_space( @@ -151,5 +151,5 @@ def _unified_space_to_platform_space( self.dimensions[0] - unified_position[0], unified_position[2], unified_position[1], - self.dimensions[3] - unified_position[3], + self.dimensions[2] - unified_position[3], ]