Skip to content

Commit 48ab889

Browse files
committed
remove mapping dict
1 parent be3bd11 commit 48ab889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

element_array_ephys/probe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def build_electrode_layouts(
250250
"shank_col": c_id,
251251
"shank_row": r_id,
252252
"x_coord": x + (shank_no * shank_spacing),
253-
"y_coord": y * {"top": -1, "bottom": 1}[y_origin],
253+
"y_coord": y if y_origin == "bottom" else -y,
254254
}
255255
for e_id, (c_id, r_id, x, y) in enumerate(
256256
zip(shank_cols, shank_rows, x_coords, y_coords)

0 commit comments

Comments
 (0)