Navigation Menu

Skip to content

Commit

Permalink
FIX: Add msg
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Feb 3, 2016
1 parent 87090d0 commit 3e3ae7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mne/decoding/tests/test_csp.py
Expand Up @@ -74,9 +74,9 @@ def test_csp():
csp_epochs = CSP(cov_est="epoch")
csp_epochs.fit(epochs_data, y)
for attr in ('filters_', 'patterns_'):
assert_true(np.corrcoef(
getattr(csp, attr).ravel(),
getattr(csp_epochs, attr).ravel())[0, 1] > 0.95)
corr = np.corrcoef(getattr(csp, attr).ravel(),
getattr(csp_epochs, attr).ravel())[0, 1]
assert_true(corr > 0.95, msg='%s < 0.95' % corr)

# make sure error is raised for undefined estimation method
csp_fail = CSP(cov_est="undefined")
Expand Down

0 comments on commit 3e3ae7f

Please sign in to comment.