{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/2834","repository_url":"https://api.github.com/repos/mne-tools/mne-python","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2834/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2834/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2834/events","html_url":"https://github.com/mne-tools/mne-python/issues/2834","id":130854590,"number":2834,"title":"CSP Test Fail","user":{"login":"clamus","id":5489720,"avatar_url":"https://avatars.githubusercontent.com/u/5489720?v=3","gravatar_id":"","url":"https://api.github.com/users/clamus","html_url":"https://github.com/clamus","followers_url":"https://api.github.com/users/clamus/followers","following_url":"https://api.github.com/users/clamus/following{/other_user}","gists_url":"https://api.github.com/users/clamus/gists{/gist_id}","starred_url":"https://api.github.com/users/clamus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clamus/subscriptions","organizations_url":"https://api.github.com/users/clamus/orgs","repos_url":"https://api.github.com/users/clamus/repos","events_url":"https://api.github.com/users/clamus/events{/privacy}","received_events_url":"https://api.github.com/users/clamus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mne-tools/mne-python/labels/BUG","name":"BUG","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mne-tools/mne-python/milestones/8","html_url":"https://github.com/mne-tools/mne-python/milestones/0.12","labels_url":"https://api.github.com/repos/mne-tools/mne-python/milestones/8/labels","id":1429321,"number":8,"title":"0.12","description":"","creator":{"login":"Eric89GXL","id":2365790,"avatar_url":"https://avatars.githubusercontent.com/u/2365790?v=3","gravatar_id":"","url":"https://api.github.com/users/Eric89GXL","html_url":"https://github.com/Eric89GXL","followers_url":"https://api.github.com/users/Eric89GXL/followers","following_url":"https://api.github.com/users/Eric89GXL/following{/other_user}","gists_url":"https://api.github.com/users/Eric89GXL/gists{/gist_id}","starred_url":"https://api.github.com/users/Eric89GXL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eric89GXL/subscriptions","organizations_url":"https://api.github.com/users/Eric89GXL/orgs","repos_url":"https://api.github.com/users/Eric89GXL/repos","events_url":"https://api.github.com/users/Eric89GXL/events{/privacy}","received_events_url":"https://api.github.com/users/Eric89GXL/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":24,"state":"open","created_at":"2015-11-25T13:36:18Z","updated_at":"2016-02-03T17:15:06Z","due_on":"2016-04-29T04:00:00Z","closed_at":null},"comments":45,"created_at":"2016-02-02T23:38:16Z","updated_at":"2016-02-03T18:33:31Z","closed_at":null,"body":"Hi Guys, The CSP test is failing on my machine. I am using the dev version of mne-python, and have not modified anything for this test. I am running OS X with anaconda with mkl. Any suggestions/ideas as to why this is happening? Below is the message I get.\r\nThanks!\r\n======================================================================\r\nFAIL: Test Common Spatial Patterns algorithm on epochs\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Users/lamexicana/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/Users/lamexicana/repos/mne-python/mne/decoding/tests/test_csp.py\", line 76, in test_csp\r\n    assert_array_almost_equal(csp.filters_, csp_epochs.filters_, -1)\r\n  File \"/Users/lamexicana/anaconda/lib/python2.7/site-packages/numpy/testing/utils.py\", line 842, in assert_array_almost_equal\r\n    precision=decimal)\r\n  File \"/Users/lamexicana/anaconda/lib/python2.7/site-packages/numpy/testing/utils.py\", line 665, in assert_array_compare\r\n    raise AssertionError(msg)\r\nAssertionError: \r\nArrays are not almost equal to -1 decimals\r\n\r\n(mismatch 11.1111111111%)\r\n x: [repr failed]\r\n y: [repr failed]\r\n-------------------- >> begin captured stdout << ---------------------\r\nOpening raw data file /Users/lamexicana/repos/mne-python/mne/io/tests/data/test_raw.fif...\r\n    Read a total of 3 projection items:\r\n        PCA-v1 (1 x 102)  idle\r\n        PCA-v2 (1 x 102)  idle\r\n        PCA-v3 (1 x 102)  idle\r\nCurrent compensation grade : 0\r\n    Range : 25800 ... 40199 =     42.956 ...    66.930 secs\r\nReady.\r\nAdding average EEG reference projection.\r\n1 projection items deactivated\r\n15 matching events found\r\nCreated an SSP operator (subspace dimension = 3)\r\n4 projection items activated\r\nReading 2425 ... 2845  =      4.038 ...     4.737 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 2851 ... 3271  =      4.747 ...     5.446 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 4105 ... 4525  =      6.835 ...     7.534 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 4530 ... 4950  =      7.542 ...     8.242 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 5745 ... 6165  =      9.565 ...    10.264 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 6181 ... 6601  =     10.291 ...    10.990 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 7405 ... 7825  =     12.329 ...    13.028 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 7792 ... 8212  =     12.973 ...    13.673 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 9036 ... 9456  =     15.045 ...    15.744 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 9508 ... 9928  =     15.830 ...    16.530 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 10656 ... 11076  =     17.742 ...    18.441 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 11087 ... 11507  =     18.459 ...    19.159 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 12406 ... 12826  =     20.655 ...    21.355 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 12791 ... 13211  =     21.297 ...    21.996 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\nReading 14006 ... 14399  =     23.319 ...    23.974 secs...\r\n[done]\r\nApplying baseline correction ... (mode: mean)\r\n1 bad epochs dropped\r\n\r\n--------------------- >> end captured stdout << ----------------------\r\n>>  raise AssertionError('\\nArrays are not almost equal to -1 decimals\\n\\n(mismatch 11.1111111111%)\\n x: [repr failed]\\n y: [repr failed]')\r\n    \r\n\r\n----------------------------------------------------------------------\r\nRan 50 tests in 49.692s\r\n\r\nFAILED (SKIP=4, failures=1)"},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/179393860","html_url":"https://github.com/mne-tools/mne-python/issues/2834#issuecomment-179393860","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2834","id":179393860,"user":{"login":"Eric89GXL","id":2365790,"avatar_url":"https://avatars.githubusercontent.com/u/2365790?v=3","gravatar_id":"","url":"https://api.github.com/users/Eric89GXL","html_url":"https://github.com/Eric89GXL","followers_url":"https://api.github.com/users/Eric89GXL/followers","following_url":"https://api.github.com/users/Eric89GXL/following{/other_user}","gists_url":"https://api.github.com/users/Eric89GXL/gists{/gist_id}","starred_url":"https://api.github.com/users/Eric89GXL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eric89GXL/subscriptions","organizations_url":"https://api.github.com/users/Eric89GXL/orgs","repos_url":"https://api.github.com/users/Eric89GXL/repos","events_url":"https://api.github.com/users/Eric89GXL/events{/privacy}","received_events_url":"https://api.github.com/users/Eric89GXL/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T18:33:31Z","updated_at":"2016-02-03T18:33:31Z","body":"Looks like the problem is when `proj=True` the `epochs.get_data()` actually differs between MKL and non-MKL (!). I expect this problem to be related to Anaconda using old compilers, see:\r\n\r\nhttps://github.com/ContinuumIO/anaconda-issues/issues/425\r\n\r\nI'm going to be mad if this ends up being the issue..."}}