22from . import utils
33
44
5- def getparam (probe : str ) -> utils .Param :
5+ def getparam (probe : str ) -> utils .Param :
66 #GETPARAM Get parameters of a uniform linear or convex array
77# PARAM = GETPARAM opens a dialog box which allows you to select a
88# transducer whose parameters are returned in PARAM.
9-
9+
1010 # PARAM = GETPARAM(PROBE), where PROBE is a string, returns the prameters
1111# of the transducer given by PROBE.
12-
12+
1313 # The structure PARAM is used in several functions of MUST (Matlab
1414# UltraSound Toolbox). The structure returned by GETPARAM contains only
1515# the fields that describe a transducer. Other fields may be required in
1616# some MUST functions.
17-
17+
1818 # PROBE can be one of the following:
1919# ---------------------------------
2020# 1) 'L11-5v' (128-element, 7.6-MHz linear array)
2121# 2) 'L12-3v' (192-element, 7.5-MHz linear array)
2222# 3) 'C5-2v' (128-element, 3.6-MHz convex array)
2323# 4) 'P4-2v' (64-element, 2.7-MHz phased array)
24-
24+
2525 # These are the <a
2626# href="matlab:web('https://verasonics.com/verasonics-transducers/')">Verasonics' transducers</a>.
2727# Feel free to complete this list for your own use.
28-
28+
2929 # PARAM is a structure that contains the following fields:
3030# --------------------------------------------------------
3131# 1) PARAM.Nelements: number of elements in the transducer array
@@ -37,8 +37,8 @@ def getparam(probe : str) -> utils.Param:
3737# 7) PARAM.radius: radius of curvature (in m, Inf for a linear array)
3838# 8) PARAM.focus: elevation focus (in m)
3939# 9) PARAM.height: element height (in m)
40-
41-
40+
41+
4242 # Example:
4343# -------
4444# #-- Generate a focused pressure field with a phased-array transducer
@@ -62,21 +62,21 @@ def getparam(probe : str) -> utils.Param:
6262# c = colorbar;
6363# c.YTickLabel{end} = '0 dB';
6464# xlabel('[cm]')
65-
66-
65+
66+
6767 # This function is part of <a
6868# href="matlab:web('https://www.biomecardio.com/MUST')">MUST</a> (Matlab UltraSound Toolbox).
6969# MUST (c) 2020 Damien Garcia, LGPL-3.0-or-later
70-
70+
7171 # See also TXDELAY, PFIELD, SIMUS, GETPULSE.
72-
72+
7373 # -- Damien Garcia -- 2015/03, last update: 2020/07
7474# website: <a
7575# href="matlab:web('https://www.biomecardio.com')">www.BiomeCardio.com</a>
7676 param = utils .Param ()
7777 probe = probe .upper ()
78-
79-
78+
79+
8080 # from computeTrans.m (Verasonics, version post Aug 2019)
8181 if 'L11-5V' == probe :
8282 # --- L11-5v (Verasonics) ---
@@ -173,4 +173,4 @@ def getparam(probe : str) -> utils.Param:
173173 else :
174174 raise Exception (np .array (['The probe ' ,probe ,' is unknown. Should be one of [L11-5V, L12-3V, C5-2V, P4-2V, PA4-2/20, L9-4/38, LA530, L14-5/38, L14-5W/60, P6-3]' ]))
175175
176- return param
176+ return param
0 commit comments