Skip to content

Commit

Permalink
zach suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Oct 15, 2024
1 parent c5ba244 commit 6150261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/probeinterface/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1782,12 +1782,12 @@ def read_openephys(

# Adds a shift to rows in the staggered configuration
is_row_staggered = np.mod(y_pos / y_pitch + 1, 2) == 1
stagger = probe_stagger if is_row_staggered else 0
row_stagger = probe_stagger if is_row_staggered else 0

# Map the positions to the contacts ids
shank_id = shank_ids[i] if shank_number > 1 else 0
contact_id = int(
(x_pos - stagger - shank_pitch * shank_id) / x_pitch
(x_pos - row_stagger - shank_pitch * shank_id) / x_pitch
+ number_of_columns * y_pos / y_pitch
)

Expand Down

0 comments on commit 6150261

Please sign in to comment.