Skip to content

Commit

Permalink
FIX: try to fix Flaky test
Browse files Browse the repository at this point in the history
- wondering if there is just a precision error with ubuntu old CI, and if so, just pushing the visual angle value to be far above .52 (the threshold for warngin) will assure that the warning is thrown across all systems.
  • Loading branch information
scott-huberty committed Jan 24, 2024
1 parent 15a5493 commit c77fd06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/preprocessing/eyetracking/tests/test_eyetracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_convert_units(eyetrack_raw, eyetrack_cal):

with pytest.raises(UserWarning, match="Some visual angle values"):
cal_tmp = cal.copy()
cal_tmp["screen_distance"] = 0.3
cal_tmp["screen_distance"] = 0.1
raw_tmp = raw.copy()
raw_tmp._data[0, :10] = 1900 # gaze to extremity of screen
mne.preprocessing.eyetracking.convert_units(raw_tmp, cal_tmp, "radians")
Expand Down

0 comments on commit c77fd06

Please sign in to comment.