def create_meandering_path(params):

    deg_to_rad = 2 * pi / 360

    radius = params.get('radius') 
    theta = params.get('theta')
    width = params.get('trace-width')
    number = params.get('bus-width') or 1
    pitch = params.get('pitch') or 0

    coords = []
    coords.append(Point(0, -(number-1)*pitch/2))
    for n in range(1, int(number)):
        coords.append(Point(2*radius*cos(theta*deg_to_rad), pitch))

    path = ''

    for coord in coords:
        path += create_round_meander(radius, theta, coord)

    # calculate the reduction of bounding box width to be used in
    # pattern spacing setting
    spacing = radius - radius*cos(theta*deg_to_rad)

    return path, spacing
Returns a meander path based on input parameters
dataset/ETHPy150Open boldport/pcbmode/pcbmode/utils/svg.py/create_meandering_path