@verbose
def fit_sphere_to_headshape(info, dig_kinds='auto', units='m', verbose=None):
 if ((not isinstance(units, string_types)) or (units not in ('m', 'mm'))):
  raise ValueError('units must be a "m" or "mm"')
 (radius, origin_head, origin_device) = _fit_sphere_to_headshape(info, dig_kinds)
 if (units == 'mm'):
  radius *= 1000.0
  origin_head *= 1000.0
  origin_device *= 1000.0
 return (radius, origin_head, origin_device)

@ verbose def fit_sphere_to_headshape ( info , dig_kinds = 'auto' , units = 'm' , verbose = None ) : if ( ( not isinstance ( units , string_types ) ) or ( units not in ( 'm' , 'mm' ) ) ) : raise ValueError ( 'units must be a "m" or "mm"' ) ( radius , origin_head , origin_device ) = _fit_sphere_to_headshape ( info , dig_kinds ) if ( units == 'mm' ) : radius *= 1000.0 origin_head *= 1000.0 origin_device *= 1000.0 return ( radius , origin_head , origin_device )
fit a sphere to the headshape points to determine head center .