Skip to content

Commit

Permalink
ENH: change assert_array_almost_equal to assert_allclose
Browse files Browse the repository at this point in the history
  • Loading branch information
wronk committed Aug 24, 2015
1 parent fb73081 commit ec250e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mne/preprocessing/tests/test_maxwell.py
Expand Up @@ -182,10 +182,10 @@ def test_bads_reconstruction():
raw_sss = maxwell.maxwell_filter(raw)
meg_chs = pick_types(raw_sss.info)

assert_array_almost_equal(raw_sss._data[meg_chs, :],
sss_bench._data[meg_chs, :], decimal=11,
err_msg='Maxwell filtered data with '
' reconstructed bads is incorrect.')
# Some numerical imprecision since save uses 'single' fmt
assert_allclose(raw_sss._data[meg_chs, :], sss_bench._data[meg_chs, :],
rtol=1e-12, atol=1e-4, err_msg='Maxwell filtered data '
'with reconstructed bads is incorrect.')

# Confirm SNR is above 1000
bench_rms = np.sqrt(np.mean(raw_sss._data[meg_chs, :] ** 2, axis=1))
Expand Down

0 comments on commit ec250e9

Please sign in to comment.