Skip to content

Commit bc1b6c0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b128d5e commit bc1b6c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/probeinterface/io.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,9 @@ def read_openephys(
17861786

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

17911793
if shank_number > 1:
17921794
contact_ids.append(f"s{shank_id}e{contact_id}")

0 commit comments

Comments
 (0)