def _setupforPVMismatch(portraitorlandscape, sensorsy, numcells=72):
    """ Sets values for calling PVMismatch, for ladscape or portrait modes and 
    
    Example:
    stdpl, cellsx, cellsy = _setupforPVMismatch(portraitorlandscape='portrait', sensorsy=100):
    """
    import numpy as np
    if numcells == 72:
        stdpl = np.array([[0, 23, 24, 47, 48, 71], [1, 22, 25, 46, 49, 70],
            [2, 21, 26, 45, 50, 69], [3, 20, 27, 44, 51, 68], [4, 19, 28, 
            43, 52, 67], [5, 18, 29, 42, 53, 66], [6, 17, 30, 41, 54, 65],
            [7, 16, 31, 40, 55, 64], [8, 15, 32, 39, 56, 63], [9, 14, 33, 
            38, 57, 62], [10, 13, 34, 37, 58, 61], [11, 12, 35, 36, 59, 60]])
    elif numcells == 96:
        stdpl = np.array([[0, 23, 24, 47, 48, 71, 72, 95], [1, 22, 25, 46, 
            49, 70, 73, 94], [2, 21, 26, 45, 50, 69, 74, 93], [3, 20, 27, 
            44, 51, 68, 75, 92], [4, 19, 28, 43, 52, 67, 76, 91], [5, 18, 
            29, 42, 53, 66, 77, 90], [6, 17, 30, 41, 54, 65, 78, 89], [7, 
            16, 31, 40, 55, 64, 79, 88], [8, 15, 32, 39, 56, 63, 80, 87], [
            9, 14, 33, 38, 57, 62, 81, 86], [10, 13, 34, 37, 58, 61, 82, 85
            ], [11, 12, 35, 36, 59, 60, 83, 84]])
    else:
        print(
            'Error. Only 72 and 96 cells modules supported at the moment. Change numcells to either of this options!'
            )
        return
    if portraitorlandscape == 'landscape':
        stdpl = stdpl.transpose()
    elif portraitorlandscape != 'portrait':
        print(
            "Error. portraitorlandscape variable must either be 'landscape' or 'portrait'"
            )
        return
    cellsx = len(stdpl[1])
    cellsy = len(stdpl)
    return stdpl, cellsx, cellsy
