Skip to content

Commit

Permalink
FIX: Fix for old build (mne-tools#7120)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Dec 4, 2019
1 parent 3897379 commit a8e853e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mne/beamformer/tests/test_lcmv.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,9 +732,10 @@ def test_lcmv_reg_proj(proj, weight_norm):
else:
scale = 1.
assert_allclose(stc_nocov.data, stc_adhoc.data * scale)
assert_allclose(
np.dot(filters_nocov['weights'], filters_nocov['whitener']),
np.dot(filters_adhoc['weights'], filters_adhoc['whitener']) * scale)
a = np.dot(filters_nocov['weights'], filters_nocov['whitener'])
b = np.dot(filters_adhoc['weights'], filters_adhoc['whitener']) * scale
atol = np.mean(np.sqrt(a * a)) * 1e-7
assert_allclose(a, b, atol=atol, rtol=1e-7)

# Compare adhoc and cov: locs might not be equivalent, but the same
# general profile should persist, so look at the std and be lenient:
Expand Down

0 comments on commit a8e853e

Please sign in to comment.