Skip to content

Commit 2a4bcbd

Browse files
committed
imprve docs
1 parent 6c2fdff commit 2a4bcbd

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/probeinterface/neuropixels_tools.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ def make_mux_table_array(mux_information) -> np.array:
145145

146146
def get_probe_contour_vertices(shank_width, tip_length, probe_length) -> list:
147147
"""
148-
Function to get the vertices of the probe contour from probe properties. The probe contour can be constructed
149-
from five points. These are the vertices shown in the following figure:
148+
Function to get the vertices of the probe contour from probe properties.
149+
The probe contour can be constructed from five points.
150+
151+
These are the vertices shown in the following figure:
150152
151153
Top of probe (y = probe_length)
152154
A +-------------------------------+ E
@@ -178,8 +180,14 @@ def get_probe_contour_vertices(shank_width, tip_length, probe_length) -> list:
178180
179181
Returns
180182
-------
181-
polygon_vertices : list
182-
List of five points which make up the probe contour.
183+
polygon_vertices : tuple of tuple
184+
Five vertices as (x, y) coordinate pairs in micrometers, returned in the
185+
order [A, B, C, D, E] corresponding to the diagram above:
186+
A = (0, probe_length) - top-left corner
187+
B = (0, 0) - bottom-left corner at shank base
188+
C = (shank_width/2, -tip_length) - tip point (center bottom)
189+
D = (shank_width, 0) - bottom-right corner at shank base
190+
E = (shank_width, probe_length) - top-right corner
183191
"""
184192

185193
# this dict define the contour for one shank (duplicated when several shanks so)

0 commit comments

Comments
 (0)