@testing.requires_testing_data
def test_calculate_chpi_positions_on_chpi5_in_shorter_steps():
 mf_quats = read_head_pos(chpi5_pos_fname)
 raw = read_raw_fif(chpi5_fif_fname, allow_maxshield='yes')
 raw = _decimate_chpi(raw.crop(0.0, 15.0).load_data(), decim=8)
 py_quats = _calculate_chpi_positions(raw, t_step_min=0.1, t_step_max=0.1, t_window=0.1, verbose='debug')
 _assert_quats(py_quats, mf_quats, dist_tol=0.001, angle_tol=0.6)

@ testing . requires_testing_data def test_calculate_chpi_positions_on_chpi5_in_shorter_steps ( ) : mf_quats = read_head_pos ( chpi5_pos_fname ) raw = read_raw_fif ( chpi5_fif_fname , allow_maxshield = 'yes' ) raw = _decimate_chpi ( raw . crop ( 0.0 , 15.0 ) . load_data ( ) , decim = 8 ) py_quats = _calculate_chpi_positions ( raw , t_step_min = 0.1 , t_step_max = 0.1 , t_window = 0.1 , verbose = 'debug' ) _assert_quats ( py_quats , mf_quats , dist_tol = 0.001 , angle_tol = 0.6 )
comparing estimated chpi positions with mf results .