From 3d753a37ad5b384f153250cb7f1f65ddc56e0ca7 Mon Sep 17 00:00:00 2001 From: mh105 Date: Tue, 4 Jun 2024 20:58:13 -0700 Subject: [PATCH] STY: update line wrapping and comment format following PEP8 --- .../sr_research/eyelink/eyetracker.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/psychopy_eyetracker_sr_research/sr_research/eyelink/eyetracker.py b/psychopy_eyetracker_sr_research/sr_research/eyelink/eyetracker.py index 636bbb5..e10ac10 100644 --- a/psychopy_eyetracker_sr_research/sr_research/eyelink/eyetracker.py +++ b/psychopy_eyetracker_sr_research/sr_research/eyelink/eyetracker.py @@ -394,8 +394,11 @@ def runSetupProcedure(self, calibration_args={}): * C = Start Calibration * V = Start Validation - * ENTER should be pressed at the end of a calibration or validation to accept the calibration, or in the case of validation, use the option drift correction that can be performed as part of the validation process in the EyeLink system. - * ESC can be pressed at any time to exit the current state of the setup procedure and return to the initial blank screen state. + * ENTER should be pressed at the end of a calibration or validation to accept the calibration, + or in the case of validation, use the option drift correction that can be performed as part of + the validation process in the EyeLink system. + * ESC can be pressed at any time to exit the current state of the setup procedure and return to + the initial blank screen state. * O = Exit the runSetupProcedure method and continue with the experiment. """ try: @@ -499,7 +502,7 @@ def setRecordingState(self, recording): while starter_thread.is_alive() or Computer.getTime()-stime < 0.5: gevent.sleep(0.001) starter_thread.join() - #print2err('start: ', Computer.getTime()-stime) + # print2err('start: ', Computer.getTime()-stime) if Computer.platform == 'win32' and EyeTracker._keyboard: EyeTracker._keyboard._syncPressedKeyState() EyeTrackerDevice.enableEventReporting(self, True) @@ -512,7 +515,7 @@ def setRecordingState(self, recording): while stopper_thread.is_alive() or Computer.getTime()-stime < 0.5: gevent.sleep(0.001) stopper_thread.join() - #print2err('stop: ', Computer.getTime() - stime) + # print2err('stop: ', Computer.getTime() - stime) if Computer.platform == 'win32' and EyeTracker._keyboard: EyeTracker._keyboard._syncPressedKeyState() EyeTrackerDevice.enableEventReporting(self, False)