コード例 #1
0
def test_read_write_info():
    """Test IO of info
    """
    info = fiff.read_info(raw_fname)
    temp_file = op.join(tempdir, "info.fif")
    fiff.write_info(temp_file, info)
    info2 = fiff.read_info(temp_file)
    assert_true(len(info["chs"]) == len(info2["chs"]))
コード例 #2
0
def test_read_write_info():
    """Test IO of info
    """
    info = fiff.read_info(raw_fname)
    temp_file = op.join(tempdir, 'info.fif')
    fiff.write_info(temp_file, info)
    info2 = fiff.read_info(temp_file)
    assert_true(len(info['chs']) == len(info2['chs']))
コード例 #3
0
def test_read_write_info():
    """Test IO of info
    """
    info = fiff.read_info(raw_fname)
    temp_file = op.join(tempdir, 'info.fif')
    # check for bug `#1198`
    info['dev_head_t']['trans'] = np.eye(4)
    t1 = info['dev_head_t']['trans']
    fiff.write_info(temp_file, info)
    info2 = fiff.read_info(temp_file)
    t2 = info2['dev_head_t']['trans']
    assert_true(len(info['chs']) == len(info2['chs']))
    assert_array_equal(t1, t2)
コード例 #4
0
def test_read_write_info():
    """Test IO of info
    """
    info = fiff.read_info(raw_fname)
    temp_file = op.join(tempdir, 'info.fif')
    # check for bug `#1198`
    info['dev_head_t']['trans'] = np.eye(4)
    t1 =  info['dev_head_t']['trans']
    fiff.write_info(temp_file, info)
    info2 = fiff.read_info(temp_file)
    t2 = info2['dev_head_t']['trans']
    assert_true(len(info['chs']) == len(info2['chs']))
    assert_array_equal(t1, t2)