def makeWennerArray(numElectrodes=32, id0=0):
    """
    creates a schedule (A,B,M, N) for a Wenner array of length numElectrodes
    """
    schedule=[]
    for a in range(1, (numElectrodes+2)//3):
        for k in range(0, numElectrodes-3*a):
            schedule.append((k+id0, k+3*a+id0, k+1*a+id0, k+2*a+id0))
    return schedule