Skip to content

Commit

Permalink
fix(probe_geometry): bugfix in x_coords for probe with staggered elec…
Browse files Browse the repository at this point in the history
…trode positions
  • Loading branch information
Thinh Nguyen committed Jan 12, 2024
1 parent 6184b2f commit 54d4fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion element_array_ephys/readers/probe_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def build_electrode_layouts(
row_offset = np.zeros_like(x_coords)
else:
assert len(row_offset) == row_count
row_offset = np.tile(row_offset, col_count_per_shank)
row_offset = np.repeat(row_offset, col_count_per_shank)
x_coords = x_coords + row_offset

shank_cols = np.tile(range(col_count_per_shank), row_count)
Expand Down

0 comments on commit 54d4fac

Please sign in to comment.