def test_io_layout_lay():
 tempdir = _TempDir()
 layout = read_layout('CTF151', scale=False)
 layout.save(op.join(tempdir, 'foobar.lay'))
 layout_read = read_layout(op.join(tempdir, 'foobar.lay'), path='./', scale=False)
 assert_array_almost_equal(layout.pos, layout_read.pos, decimal=2)
 assert_true(layout.names, layout_read.names)

def test_io_layout_lay ( ) : tempdir = _TempDir ( ) layout = read_layout ( 'CTF151' , scale = False ) layout . save ( op . join ( tempdir , 'foobar.lay' ) ) layout_read = read_layout ( op . join ( tempdir , 'foobar.lay' ) , path = './' , scale = False ) assert_array_almost_equal ( layout . pos , layout_read . pos , decimal = 2 ) assert_true ( layout . names , layout_read . names )
test io with .