@@ -100,7 +100,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
100
100
col_spacing = 32 ,
101
101
row_spacing = 20 ,
102
102
white_spacing = 16 ,
103
- col_count = 2 ,
103
+ col_count_per_shank = 2 ,
104
104
shank_count = 1 ,
105
105
shank_spacing = 0 ,
106
106
),
@@ -109,7 +109,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
109
109
col_spacing = 32 ,
110
110
row_spacing = 20 ,
111
111
white_spacing = 16 ,
112
- col_count = 2 ,
112
+ col_count_per_shank = 2 ,
113
113
shank_count = 1 ,
114
114
shank_spacing = 0 ,
115
115
),
@@ -118,7 +118,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
118
118
col_spacing = 6 ,
119
119
row_spacing = 6 ,
120
120
white_spacing = 0 ,
121
- col_count = 8 ,
121
+ col_count_per_shank = 8 ,
122
122
shank_count = 1 ,
123
123
shank_spacing = 0 ,
124
124
),
@@ -127,7 +127,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
127
127
col_spacing = 32 ,
128
128
row_spacing = 15 ,
129
129
white_spacing = 0 ,
130
- col_count = 2 ,
130
+ col_count_per_shank = 2 ,
131
131
shank_count = 1 ,
132
132
shank_spacing = 250 ,
133
133
),
@@ -136,7 +136,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
136
136
col_spacing = 32 ,
137
137
row_spacing = 15 ,
138
138
white_spacing = 0 ,
139
- col_count = 2 ,
139
+ col_count_per_shank = 2 ,
140
140
shank_count = 4 ,
141
141
shank_spacing = 250 ,
142
142
),
@@ -207,7 +207,7 @@ def build_electrode_layouts(
207
207
col_spacing : float = 1 ,
208
208
row_spacing : float = 1 ,
209
209
white_spacing : float = None ,
210
- col_count : int = 1 ,
210
+ col_count_per_shank : int = 1 ,
211
211
shank_count : int = 1 ,
212
212
shank_spacing : float = 1 ,
213
213
y_origin = "bottom" ,
@@ -220,23 +220,25 @@ def build_electrode_layouts(
220
220
col_spacing (float): (μm) horizontal spacing between sites. Defaults to 1 (single column).
221
221
row_spacing (float): (μm) vertical spacing between columns. Defaults to 1 (single row).
222
222
white_spacing (float): (μm) offset spacing. Defaults to None.
223
- col_count (int): number of column per shank. Defaults to 1 (single column).
223
+ col_count_per_shank (int): number of column per shank. Defaults to 1 (single column).
224
224
shank_count (int): number of shank. Defaults to 1 (single shank).
225
225
shank_spacing (float): spacing between shanks. Defaults to 1 (single shank).
226
226
y_origin (str): {"bottom", "top"}. y value decrements if "top". Defaults to "bottom".
227
227
"""
228
- row_count = int (site_count_per_shank / col_count )
229
- x_coords = np .tile (np .arange (0 , col_spacing * col_count , col_spacing ), row_count )
230
- y_coords = np .repeat (np .arange (row_count ) * row_spacing , col_count )
228
+ row_count = int (site_count_per_shank / col_count_per_shank )
229
+ x_coords = np .tile (
230
+ np .arange (0 , col_spacing * col_count_per_shank , col_spacing ), row_count
231
+ )
232
+ y_coords = np .repeat (np .arange (row_count ) * row_spacing , col_count_per_shank )
231
233
232
234
if white_spacing :
233
235
x_white_spaces = np .tile (
234
236
[white_spacing , white_spacing , 0 , 0 ], int (row_count / 2 )
235
237
)
236
238
x_coords = x_coords + x_white_spaces
237
239
238
- shank_cols = np .tile (range (col_count ), row_count )
239
- shank_rows = np .repeat (range (row_count ), col_count )
240
+ shank_cols = np .tile (range (col_count_per_shank ), row_count )
241
+ shank_rows = np .repeat (range (row_count ), col_count_per_shank )
240
242
241
243
electrode_layouts = []
242
244
for shank_no in range (shank_count ):
0 commit comments