@testing.requires_testing_data
def test_hpi_info():
 tempdir = _TempDir()
 temp_name = op.join(tempdir, 'temp_raw.fif')
 for fname in (chpi_fif_fname, sss_fif_fname):
  raw = read_raw_fif(fname, allow_maxshield='yes').crop(0, 0.1)
  assert_true((len(raw.info['hpi_subsystem']) > 0))
  raw.save(temp_name, overwrite=True)
  info = read_info(temp_name)
  assert_equal(len(info['hpi_subsystem']), len(raw.info['hpi_subsystem']))

@ testing . requires_testing_data def test_hpi_info ( ) : tempdir = _TempDir ( ) temp_name = op . join ( tempdir , 'temp_raw.fif' ) for fname in ( chpi_fif_fname , sss_fif_fname ) : raw = read_raw_fif ( fname , allow_maxshield = 'yes' ) . crop ( 0 , 0.1 ) assert_true ( ( len ( raw . info [ 'hpi_subsystem' ] ) > 0 ) ) raw . save ( temp_name , overwrite = True ) info = read_info ( temp_name ) assert_equal ( len ( info [ 'hpi_subsystem' ] ) , len ( raw . info [ 'hpi_subsystem' ] ) )
test getting hpi info .