@@ -145,21 +145,29 @@ def make_mux_table_array(mux_information) -> np.array:
145145
146146def 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:
150-
151- A | | E
152- | |
153- .
154- .
155- .
156- | |
157- B | | D
158- \\ /
159- \\ /
160- C
161-
162- This function returns the points indicated in the diagram above in a list [A,B,C,D,E].
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:
152+
153+ Top of probe (y = probe_length)
154+ A +-------------------------------+ E
155+ | |
156+ | |
157+ | Shank body |
158+ | (shank_width) |
159+ | |
160+ | |
161+ B +-------------------------------+ D (y = 0)
162+ \ /
163+ \ Tip region /
164+ \ (tip_length) /
165+ \ /
166+ \ /
167+ \ /
168+ +-----------------+ C (y = -tip_length)
169+
170+ This function returns the vertices in the order [A, B, C, D, E] as a list of (x, y) coordinates.
163171
164172 Parameters
165173 ----------
@@ -172,8 +180,14 @@ def get_probe_contour_vertices(shank_width, tip_length, probe_length) -> list:
172180
173181 Returns
174182 -------
175- polygon_vertices : list
176- 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
177191 """
178192
179193 # this dict define the contour for one shank (duplicated when several shanks so)
0 commit comments