@testing.requires_testing_data
@requires_mayavi
def test_inst_source():
 from mne.gui._file_traits import InstSource
 inst = InstSource()
 assert_equal(inst.inst_fname, '-')
 inst.file = inst_path
 assert_equal(inst.inst_dir, os.path.dirname(inst_path))
 lpa = array([[(-0.0713766068), 0.0, 5.12227416e-09]])
 nasion = array([[3.7252903e-09, 0.102605611, 4.19095159e-09]])
 rpa = array([[0.07526768, 0.0, 5.58793545e-09]])
 assert_allclose(inst.lpa, lpa)
 assert_allclose(inst.nasion, nasion)
 assert_allclose(inst.rpa, rpa)

@ testing . requires_testing_data @ requires_mayavi def test_inst_source ( ) : from mne . gui . _file_traits import InstSource inst = InstSource ( ) assert_equal ( inst . inst_fname , '-' ) inst . file = inst_path assert_equal ( inst . inst_dir , os . path . dirname ( inst_path ) ) lpa = array ( [ [ ( - 0.0713766068 ) , 0.0 , 5.12227416e-09 ] ] ) nasion = array ( [ [ 3.7252903e-09 , 0.102605611 , 4.19095159e-09 ] ] ) rpa = array ( [ [ 0.07526768 , 0.0 , 5.58793545e-09 ] ] ) assert_allclose ( inst . lpa , lpa ) assert_allclose ( inst . nasion , nasion ) assert_allclose ( inst . rpa , rpa )
test instsource .