@@ -96,7 +96,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
96
96
97
97
neuropixels_probes_config = {
98
98
"neuropixels 1.0 - 3A" : dict (
99
- site_count = 960 ,
99
+ site_count_per_shank = 960 ,
100
100
col_spacing = 32 ,
101
101
row_spacing = 20 ,
102
102
white_spacing = 16 ,
@@ -105,7 +105,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
105
105
shank_spacing = 0 ,
106
106
),
107
107
"neuropixels 1.0 - 3B" : dict (
108
- site_count = 960 ,
108
+ site_count_per_shank = 960 ,
109
109
col_spacing = 32 ,
110
110
row_spacing = 20 ,
111
111
white_spacing = 16 ,
@@ -114,7 +114,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
114
114
shank_spacing = 0 ,
115
115
),
116
116
"neuropixels UHD" : dict (
117
- site_count = 384 ,
117
+ site_count_per_shank = 384 ,
118
118
col_spacing = 6 ,
119
119
row_spacing = 6 ,
120
120
white_spacing = 0 ,
@@ -123,7 +123,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
123
123
shank_spacing = 0 ,
124
124
),
125
125
"neuropixels 2.0 - SS" : dict (
126
- site_count = 1280 ,
126
+ site_count_per_shank = 1280 ,
127
127
col_spacing = 32 ,
128
128
row_spacing = 15 ,
129
129
white_spacing = 0 ,
@@ -132,7 +132,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
132
132
shank_spacing = 250 ,
133
133
),
134
134
"neuropixels 2.0 - MS" : dict (
135
- site_count = 1280 ,
135
+ site_count_per_shank = 1280 ,
136
136
col_spacing = 32 ,
137
137
row_spacing = 15 ,
138
138
white_spacing = 0 ,
@@ -203,7 +203,7 @@ class Electrode(dj.Part):
203
203
204
204
205
205
def build_electrode_layouts (
206
- site_count : int ,
206
+ site_count_per_shank : int ,
207
207
col_spacing : float = 1 ,
208
208
row_spacing : float = 1 ,
209
209
white_spacing : float = None ,
@@ -216,7 +216,7 @@ def build_electrode_layouts(
216
216
"""Builds electrode layouts.
217
217
218
218
Args:
219
- site_count (int): site count per shank
219
+ site_count_per_shank (int): site count per shank.
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.
@@ -225,7 +225,7 @@ def build_electrode_layouts(
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 / col_count )
228
+ row_count = int (site_count_per_shank / col_count )
229
229
x_coords = np .tile (np .arange (0 , col_spacing * col_count , col_spacing ), row_count )
230
230
y_coords = np .repeat (np .arange (row_count ) * row_spacing , col_count )
231
231
@@ -243,7 +243,7 @@ def build_electrode_layouts(
243
243
electrode_layouts .extend (
244
244
[
245
245
{
246
- "electrode" : (site_count * shank_no ) + e_id ,
246
+ "electrode" : (site_count_per_shank * shank_no ) + e_id ,
247
247
"shank" : shank_no ,
248
248
"shank_col" : c_id ,
249
249
"shank_row" : r_id ,
0 commit comments