def _make_dipoles(times, poss, oris, sol, gof):
    amplitude = sol * 1e9
    oris = np.array(oris)

    dipoles = []
    for i_dip in range(poss.shape[0]):
        i_pos = poss[i_dip][np.newaxis, :].repeat(len(times), axis=0)
        i_ori = oris[i_dip][np.newaxis, :].repeat(len(times), axis=0)
        dipoles.append(Dipole(times, i_pos, amplitude[i_dip],
                              i_ori, gof))

    return dipoles
Builds a lambda function representing a predicate on a tree node
dataset/ETHPy150Open mne-tools/mne-python/mne/beamformer/_rap_music.py/_make_dipoles--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/tgrep.py/_tgrep_node_label_pred_use_action