Skip to content

Commit 6150261

Browse files
committed
zach suggestions
1 parent c5ba244 commit 6150261

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/probeinterface/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,12 +1782,12 @@ def read_openephys(
17821782

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

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

0 commit comments

Comments
 (0)