@testing.requires_testing_data
def test_warn_inverse_operator():
 bad_info = copy.deepcopy(_get_evoked().info)
 bad_info['projs'] = list()
 fwd_op = read_forward_solution(fname_fwd, surf_ori=True)
 noise_cov = read_cov(fname_cov)
 with warnings.catch_warnings(record=True) as w:
  make_inverse_operator(bad_info, fwd_op, noise_cov)
 assert_equal(len(w), 1)

@ testing . requires_testing_data def test_warn_inverse_operator ( ) : bad_info = copy . deepcopy ( _get_evoked ( ) . info ) bad_info [ 'projs' ] = list ( ) fwd_op = read_forward_solution ( fname_fwd , surf_ori = True ) noise_cov = read_cov ( fname_cov ) with warnings . catch_warnings ( record = True ) as w : make_inverse_operator ( bad_info , fwd_op , noise_cov ) assert_equal ( len ( w ) , 1 )
test mne inverse warning without average eeg projection .