#NEWLINE# def test_io_w( ) : #NEWLINE# #INDENT# 'Test IO for w files\n    ' #NEWLINE# tempdir = _TempDir ( ) #NEWLINE# stc = _fake_stc ( n_time = 1 ) #NEWLINE# w_fname = op . join ( tempdir , 'fake' ) #NEWLINE# stc . save ( w_fname , ftype = 'w' ) #NEWLINE# src = read_source_estimate ( w_fname ) #NEWLINE# src . save ( op . join ( tempdir , 'tmp' ) , ftype = 'w' ) #NEWLINE# src2 = read_source_estimate ( op . join ( tempdir , 'tmp-lh.w' ) ) #NEWLINE# assert_array_almost_equal ( src . data , stc . data ) #NEWLINE# assert_array_almost_equal ( src . lh_vertno , src2 . lh_vertno ) #NEWLINE# assert_array_almost_equal ( src . rh_vertno , src2 . rh_vertno )