@@ -100,7 +100,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
100100 col_spacing = 32 ,
101101 row_spacing = 20 ,
102102 white_spacing = 16 ,
103- col_count = 2 ,
103+ col_count_per_shank = 2 ,
104104 shank_count = 1 ,
105105 shank_spacing = 0 ,
106106 ),
@@ -109,7 +109,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
109109 col_spacing = 32 ,
110110 row_spacing = 20 ,
111111 white_spacing = 16 ,
112- col_count = 2 ,
112+ col_count_per_shank = 2 ,
113113 shank_count = 1 ,
114114 shank_spacing = 0 ,
115115 ),
@@ -118,7 +118,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
118118 col_spacing = 6 ,
119119 row_spacing = 6 ,
120120 white_spacing = 0 ,
121- col_count = 8 ,
121+ col_count_per_shank = 8 ,
122122 shank_count = 1 ,
123123 shank_spacing = 0 ,
124124 ),
@@ -127,7 +127,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
127127 col_spacing = 32 ,
128128 row_spacing = 15 ,
129129 white_spacing = 0 ,
130- col_count = 2 ,
130+ col_count_per_shank = 2 ,
131131 shank_count = 1 ,
132132 shank_spacing = 250 ,
133133 ),
@@ -136,7 +136,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
136136 col_spacing = 32 ,
137137 row_spacing = 15 ,
138138 white_spacing = 0 ,
139- col_count = 2 ,
139+ col_count_per_shank = 2 ,
140140 shank_count = 4 ,
141141 shank_spacing = 250 ,
142142 ),
@@ -207,7 +207,7 @@ def build_electrode_layouts(
207207 col_spacing : float = 1 ,
208208 row_spacing : float = 1 ,
209209 white_spacing : float = None ,
210- col_count : int = 1 ,
210+ col_count_per_shank : int = 1 ,
211211 shank_count : int = 1 ,
212212 shank_spacing : float = 1 ,
213213 y_origin = "bottom" ,
@@ -220,23 +220,25 @@ def build_electrode_layouts(
220220 col_spacing (float): (μm) horizontal spacing between sites. Defaults to 1 (single column).
221221 row_spacing (float): (μm) vertical spacing between columns. Defaults to 1 (single row).
222222 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).
224224 shank_count (int): number of shank. Defaults to 1 (single shank).
225225 shank_spacing (float): spacing between shanks. Defaults to 1 (single shank).
226226 y_origin (str): {"bottom", "top"}. y value decrements if "top". Defaults to "bottom".
227227 """
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 )
231233
232234 if white_spacing :
233235 x_white_spaces = np .tile (
234236 [white_spacing , white_spacing , 0 , 0 ], int (row_count / 2 )
235237 )
236238 x_coords = x_coords + x_white_spaces
237239
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 )
240242
241243 electrode_layouts = []
242244 for shank_no in range (shank_count ):
0 commit comments