def translate_order(order):
    """
    Translates 'row_major' or 'col_major' to 'C' or 'F' respectively that numpy.reshape wants as an argument

    Parameters
    ----------
    order: str
        Must be one of ["row_major", "col_majr"]

    Output
    ------
    'C' (row major) or 'F' (col major)
    """

    if order == 'row_major':
        np_ord = 'C'
    elif order == 'col_major':
        np_ord = 'F'
    else:
        raise ValueError('order must be one of ["row_major", "col_majr"], '
                         'not {}'.format(order))

    return np_ord