We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5ba244 commit 6150261Copy full SHA for 6150261
src/probeinterface/io.py
@@ -1782,12 +1782,12 @@ def read_openephys(
1782
1783
# Adds a shift to rows in the staggered configuration
1784
is_row_staggered = np.mod(y_pos / y_pitch + 1, 2) == 1
1785
- stagger = probe_stagger if is_row_staggered else 0
+ row_stagger = probe_stagger if is_row_staggered else 0
1786
1787
# Map the positions to the contacts ids
1788
shank_id = shank_ids[i] if shank_number > 1 else 0
1789
contact_id = int(
1790
- (x_pos - stagger - shank_pitch * shank_id) / x_pitch
+ (x_pos - row_stagger - shank_pitch * shank_id) / x_pitch
1791
+ number_of_columns * y_pos / y_pitch
1792
)
1793
0 commit comments