Skip to content

Commit

Permalink
Fix index out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy5 committed Oct 17, 2023
1 parent 671d7af commit 4844230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" }]
Expand Down
4 changes: 2 additions & 2 deletions src/ephys_link/platforms/new_scale_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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],
]

0 comments on commit 4844230

Please sign in to comment.