def check_self_transitions_in_einstien_nnz_data(a_info_nnz):
    """
    Raise an error if there are self transitions in the Einstein coefficient

    :param DataSetRawBase.A_info_nnz like a_info_nnz: a tuple of elements v_nnz,
     j_nnz, vp_nnz, jp_nnz, A_nnz
    :return: True if everything ok, else error is raised
    """
    v_nnz, j_nnz, vp_nnz, jp_nnz, a_nnz = a_info_nnz
    for i, A in enumerate(a_nnz):
        v, j, vp, jp = v_nnz[i], j_nnz[i], vp_nnz[i], jp_nnz[i]
        if v == vp and j == jp:
            raise ValueError('v -> v, j -> j transition. This is not possible')
    else:
        return True
