Skip to content

Commit cb21f61

Browse files
committed
site_count_per_shank
1 parent 1c7160c commit cb21f61

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

element_array_ephys/probe.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
9696

9797
neuropixels_probes_config = {
9898
"neuropixels 1.0 - 3A": dict(
99-
site_count=960,
99+
site_count_per_shank=960,
100100
col_spacing=32,
101101
row_spacing=20,
102102
white_spacing=16,
@@ -105,7 +105,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
105105
shank_spacing=0,
106106
),
107107
"neuropixels 1.0 - 3B": dict(
108-
site_count=960,
108+
site_count_per_shank=960,
109109
col_spacing=32,
110110
row_spacing=20,
111111
white_spacing=16,
@@ -114,7 +114,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
114114
shank_spacing=0,
115115
),
116116
"neuropixels UHD": dict(
117-
site_count=384,
117+
site_count_per_shank=384,
118118
col_spacing=6,
119119
row_spacing=6,
120120
white_spacing=0,
@@ -123,7 +123,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
123123
shank_spacing=0,
124124
),
125125
"neuropixels 2.0 - SS": dict(
126-
site_count=1280,
126+
site_count_per_shank=1280,
127127
col_spacing=32,
128128
row_spacing=15,
129129
white_spacing=0,
@@ -132,7 +132,7 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
132132
shank_spacing=250,
133133
),
134134
"neuropixels 2.0 - MS": dict(
135-
site_count=1280,
135+
site_count_per_shank=1280,
136136
col_spacing=32,
137137
row_spacing=15,
138138
white_spacing=0,
@@ -203,7 +203,7 @@ class Electrode(dj.Part):
203203

204204

205205
def build_electrode_layouts(
206-
site_count: int,
206+
site_count_per_shank: int,
207207
col_spacing: float = 1,
208208
row_spacing: float = 1,
209209
white_spacing: float = None,
@@ -216,7 +216,7 @@ def build_electrode_layouts(
216216
"""Builds electrode layouts.
217217
218218
Args:
219-
site_count (int): site count per shank
219+
site_count_per_shank (int): site count per shank.
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.
@@ -225,7 +225,7 @@ def build_electrode_layouts(
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 / col_count)
228+
row_count = int(site_count_per_shank / col_count)
229229
x_coords = np.tile(np.arange(0, col_spacing * col_count, col_spacing), row_count)
230230
y_coords = np.repeat(np.arange(row_count) * row_spacing, col_count)
231231

@@ -243,7 +243,7 @@ def build_electrode_layouts(
243243
electrode_layouts.extend(
244244
[
245245
{
246-
"electrode": (site_count * shank_no) + e_id,
246+
"electrode": (site_count_per_shank * shank_no) + e_id,
247247
"shank": shank_no,
248248
"shank_col": c_id,
249249
"shank_row": r_id,

0 commit comments

Comments
 (0)