diff --git a/pupil_src/launchables/eye.py b/pupil_src/launchables/eye.py index 4e3ee8e1c9..4139054c67 100644 --- a/pupil_src/launchables/eye.py +++ b/pupil_src/launchables/eye.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import os import platform import signal diff --git a/pupil_src/launchables/marker_detectors.py b/pupil_src/launchables/marker_detectors.py index 5a33f2f3c5..fb04d0f1c5 100644 --- a/pupil_src/launchables/marker_detectors.py +++ b/pupil_src/launchables/marker_detectors.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from types import SimpleNamespace diff --git a/pupil_src/launchables/player.py b/pupil_src/launchables/player.py index 4eaf79b276..770313553d 100644 --- a/pupil_src/launchables/player.py +++ b/pupil_src/launchables/player.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import asyncio import os import platform @@ -775,9 +776,9 @@ def handle_notifications(n): session_settings["loaded_plugins"] = g_pool.plugins.get_initializers() session_settings["min_data_confidence"] = g_pool.min_data_confidence - session_settings[ - "min_calibration_confidence" - ] = g_pool.min_calibration_confidence + session_settings["min_calibration_confidence"] = ( + g_pool.min_calibration_confidence + ) session_settings["ui_config"] = g_pool.gui.configuration session_settings["window_position"] = glfw.get_window_pos(main_window) session_settings["version"] = str(g_pool.version) diff --git a/pupil_src/launchables/service.py b/pupil_src/launchables/service.py index 6d41a07a3a..335c8fdb35 100644 --- a/pupil_src/launchables/service.py +++ b/pupil_src/launchables/service.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import os import signal @@ -297,9 +298,9 @@ def handle_notifications(n): session_settings["version"] = str(g_pool.version) session_settings["eye0_process_alive"] = eye_procs_alive[0].value session_settings["eye1_process_alive"] = eye_procs_alive[1].value - session_settings[ - "min_calibration_confidence" - ] = g_pool.min_calibration_confidence + session_settings["min_calibration_confidence"] = ( + g_pool.min_calibration_confidence + ) session_settings["audio_mode"] = audio.get_audio_mode() session_settings.close() diff --git a/pupil_src/launchables/world.py b/pupil_src/launchables/world.py index 88942da54c..6f267c3a5a 100644 --- a/pupil_src/launchables/world.py +++ b/pupil_src/launchables/world.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import os import platform import signal @@ -809,9 +810,9 @@ def window_should_update(): session_settings["version"] = str(g_pool.version) session_settings["eye0_process_alive"] = eye_procs_alive[0].value session_settings["eye1_process_alive"] = eye_procs_alive[1].value - session_settings[ - "min_calibration_confidence" - ] = g_pool.min_calibration_confidence + session_settings["min_calibration_confidence"] = ( + g_pool.min_calibration_confidence + ) session_settings["pupil_detection_enabled"] = g_pool.pupil_detection_enabled session_settings["audio_mode"] = audio.get_audio_mode() diff --git a/pupil_src/shared_modules/accuracy_visualizer.py b/pupil_src/shared_modules/accuracy_visualizer.py index 25a7230b1a..2fd9b8a64f 100644 --- a/pupil_src/shared_modules/accuracy_visualizer.py +++ b/pupil_src/shared_modules/accuracy_visualizer.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import traceback import typing as T @@ -273,10 +274,12 @@ def ignore(_): self, "Angular Accuracy", setter=ignore, - getter=lambda: f"{self.accuracy.result:.3f} deg. Samples used: " - f"{self.accuracy.num_used} / {self.accuracy.num_total}" - if self.accuracy is not None - else "Not available", + getter=lambda: ( + f"{self.accuracy.result:.3f} deg. Samples used: " + f"{self.accuracy.num_used} / {self.accuracy.num_total}" + if self.accuracy is not None + else "Not available" + ), ) ) self.menu.append(ui.Info_Text(precision_help)) @@ -286,10 +289,12 @@ def ignore(_): self, "Angular Precision", setter=ignore, - getter=lambda: f"{self.precision.result:.3f} deg. Samples used: " - f"{self.precision.num_used} / {self.precision.num_total}" - if self.precision is not None - else "Not available", + getter=lambda: ( + f"{self.precision.result:.3f} deg. Samples used: " + f"{self.precision.num_used} / {self.precision.num_total}" + if self.precision is not None + else "Not available" + ), ) ) diff --git a/pupil_src/shared_modules/annotations.py b/pupil_src/shared_modules/annotations.py index f980ee8f10..c7aa92aa76 100644 --- a/pupil_src/shared_modules/annotations.py +++ b/pupil_src/shared_modules/annotations.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import csv import json diff --git a/pupil_src/shared_modules/audio/__init__.py b/pupil_src/shared_modules/audio/__init__.py index 909c2407f0..1d89ff32c9 100644 --- a/pupil_src/shared_modules/audio/__init__.py +++ b/pupil_src/shared_modules/audio/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import platform import subprocess as sp diff --git a/pupil_src/shared_modules/audio_playback.py b/pupil_src/shared_modules/audio_playback.py index c3525180e3..6968751a62 100644 --- a/pupil_src/shared_modules/audio_playback.py +++ b/pupil_src/shared_modules/audio_playback.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import itertools import logging diff --git a/pupil_src/shared_modules/audio_utils.py b/pupil_src/shared_modules/audio_utils.py index c6e3d917f0..96517bd459 100644 --- a/pupil_src/shared_modules/audio_utils.py +++ b/pupil_src/shared_modules/audio_utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import logging import traceback diff --git a/pupil_src/shared_modules/av_writer.py b/pupil_src/shared_modules/av_writer.py index be0ac6dc20..b21493384d 100644 --- a/pupil_src/shared_modules/av_writer.py +++ b/pupil_src/shared_modules/av_writer.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import collections import logging diff --git a/pupil_src/shared_modules/background_helper.py b/pupil_src/shared_modules/background_helper.py index c8f7af9499..0d4a70d18a 100644 --- a/pupil_src/shared_modules/background_helper.py +++ b/pupil_src/shared_modules/background_helper.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import multiprocessing as mp import signal diff --git a/pupil_src/shared_modules/blink_detection.py b/pupil_src/shared_modules/blink_detection.py index 8bc0467aa0..ba2d39fd9f 100644 --- a/pupil_src/shared_modules/blink_detection.py +++ b/pupil_src/shared_modules/blink_detection.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import csv import logging import os diff --git a/pupil_src/shared_modules/calibration_choreography/__init__.py b/pupil_src/shared_modules/calibration_choreography/__init__.py index e75ae33dcb..7197e814e3 100644 --- a/pupil_src/shared_modules/calibration_choreography/__init__.py +++ b/pupil_src/shared_modules/calibration_choreography/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .base_plugin import ( CalibrationChoreographyPlugin, ChoreographyAction, diff --git a/pupil_src/shared_modules/calibration_choreography/base_plugin.py b/pupil_src/shared_modules/calibration_choreography/base_plugin.py index b79d029b3a..018358cf07 100644 --- a/pupil_src/shared_modules/calibration_choreography/base_plugin.py +++ b/pupil_src/shared_modules/calibration_choreography/base_plugin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import enum import functools as F diff --git a/pupil_src/shared_modules/calibration_choreography/controller/__init__.py b/pupil_src/shared_modules/calibration_choreography/controller/__init__.py index 8330dff978..0c83cd6fb6 100644 --- a/pupil_src/shared_modules/calibration_choreography/controller/__init__.py +++ b/pupil_src/shared_modules/calibration_choreography/controller/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .gui_monitor import GUIMonitor from .gui_window import GUIWindow from .marker_window_controller import ( diff --git a/pupil_src/shared_modules/calibration_choreography/controller/gui_monitor.py b/pupil_src/shared_modules/calibration_choreography/controller/gui_monitor.py index 96bd7132a6..b54ec63845 100644 --- a/pupil_src/shared_modules/calibration_choreography/controller/gui_monitor.py +++ b/pupil_src/shared_modules/calibration_choreography/controller/gui_monitor.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import typing as T diff --git a/pupil_src/shared_modules/calibration_choreography/controller/gui_window.py b/pupil_src/shared_modules/calibration_choreography/controller/gui_window.py index 4f9af5905f..dc6125ca70 100644 --- a/pupil_src/shared_modules/calibration_choreography/controller/gui_window.py +++ b/pupil_src/shared_modules/calibration_choreography/controller/gui_window.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import contextlib import platform diff --git a/pupil_src/shared_modules/calibration_choreography/controller/marker_window_controller.py b/pupil_src/shared_modules/calibration_choreography/controller/marker_window_controller.py index 19200503c7..c7923b0569 100644 --- a/pupil_src/shared_modules/calibration_choreography/controller/marker_window_controller.py +++ b/pupil_src/shared_modules/calibration_choreography/controller/marker_window_controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import functools import logging diff --git a/pupil_src/shared_modules/calibration_choreography/hmd_plugin.py b/pupil_src/shared_modules/calibration_choreography/hmd_plugin.py index 530a5b8ff8..41548a54f9 100644 --- a/pupil_src/shared_modules/calibration_choreography/hmd_plugin.py +++ b/pupil_src/shared_modules/calibration_choreography/hmd_plugin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging import os diff --git a/pupil_src/shared_modules/calibration_choreography/mixin/__init__.py b/pupil_src/shared_modules/calibration_choreography/mixin/__init__.py index f46e1ca031..30b5fedff8 100644 --- a/pupil_src/shared_modules/calibration_choreography/mixin/__init__.py +++ b/pupil_src/shared_modules/calibration_choreography/mixin/__init__.py @@ -8,4 +8,5 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .monitor_selection_mixin import MonitorSelectionMixin diff --git a/pupil_src/shared_modules/calibration_choreography/mixin/monitor_selection_mixin.py b/pupil_src/shared_modules/calibration_choreography/mixin/monitor_selection_mixin.py index f7be652c9a..785730aea7 100644 --- a/pupil_src/shared_modules/calibration_choreography/mixin/monitor_selection_mixin.py +++ b/pupil_src/shared_modules/calibration_choreography/mixin/monitor_selection_mixin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T diff --git a/pupil_src/shared_modules/calibration_choreography/natural_feature_plugin.py b/pupil_src/shared_modules/calibration_choreography/natural_feature_plugin.py index e87b136131..ea39cfaa53 100644 --- a/pupil_src/shared_modules/calibration_choreography/natural_feature_plugin.py +++ b/pupil_src/shared_modules/calibration_choreography/natural_feature_plugin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import os import typing as T diff --git a/pupil_src/shared_modules/calibration_choreography/screen_marker_plugin.py b/pupil_src/shared_modules/calibration_choreography/screen_marker_plugin.py index e99c598473..8b16365c00 100644 --- a/pupil_src/shared_modules/calibration_choreography/screen_marker_plugin.py +++ b/pupil_src/shared_modules/calibration_choreography/screen_marker_plugin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T diff --git a/pupil_src/shared_modules/calibration_choreography/single_marker_plugin.py b/pupil_src/shared_modules/calibration_choreography/single_marker_plugin.py index 1eed00ef38..6e8b52cfe7 100644 --- a/pupil_src/shared_modules/calibration_choreography/single_marker_plugin.py +++ b/pupil_src/shared_modules/calibration_choreography/single_marker_plugin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import enum import logging import typing as T diff --git a/pupil_src/shared_modules/camera_intrinsics_estimation.py b/pupil_src/shared_modules/camera_intrinsics_estimation.py index 9474a5c1a9..848f51086f 100644 --- a/pupil_src/shared_modules/camera_intrinsics_estimation.py +++ b/pupil_src/shared_modules/camera_intrinsics_estimation.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import cv2 import gl_utils import glfw diff --git a/pupil_src/shared_modules/camera_models.py b/pupil_src/shared_modules/camera_models.py index 8768978a06..8ef1851332 100644 --- a/pupil_src/shared_modules/camera_models.py +++ b/pupil_src/shared_modules/camera_models.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import ast import logging @@ -350,8 +351,7 @@ def focal_length(self) -> float: return (fx + fy) / 2 @abc.abstractmethod - def undistort(self, img: npt.NDArray[np.uint8]) -> npt.NDArray[np.uint8]: - ... + def undistort(self, img: npt.NDArray[np.uint8]) -> npt.NDArray[np.uint8]: ... @abc.abstractmethod def unprojectPoints( @@ -359,8 +359,7 @@ def unprojectPoints( pts_2d: npt.NDArray[np.float64], use_distortion: bool = True, normalize: bool = False, - ) -> npt.NDArray[np.float64]: - ... + ) -> npt.NDArray[np.float64]: ... @abc.abstractmethod def projectPoints( @@ -369,14 +368,12 @@ def projectPoints( rvec: T.Optional[npt.NDArray[np.float64]] = None, tvec: T.Optional[npt.NDArray[np.float64]] = None, use_distortion: bool = True, - ): - ... + ): ... @abc.abstractmethod def undistort_points_to_ideal_point_coordinates( self, points: npt.NDArray[np.float64] - ) -> npt.NDArray[np.float64]: - ... + ) -> npt.NDArray[np.float64]: ... def undistort_points_on_image_plane( self, points: npt.NDArray[np.float64] @@ -401,8 +398,7 @@ def solvePnP( useExtrinsicGuess: bool = False, rvec: T.Optional[np.ndarray] = None, tvec: T.Optional[np.ndarray] = None, - ): - ... + ): ... subclass_by_cam_type: T.Dict[str, T.Type["Camera_Model"]] = dict() diff --git a/pupil_src/shared_modules/csv_utils.py b/pupil_src/shared_modules/csv_utils.py index 50e9557eff..ba7740fa39 100644 --- a/pupil_src/shared_modules/csv_utils.py +++ b/pupil_src/shared_modules/csv_utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import csv import os diff --git a/pupil_src/shared_modules/cv2_writer.py b/pupil_src/shared_modules/cv2_writer.py index 79b96bb119..8dc732e543 100644 --- a/pupil_src/shared_modules/cv2_writer.py +++ b/pupil_src/shared_modules/cv2_writer.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from cv2 import VideoWriter diff --git a/pupil_src/shared_modules/data_changed.py b/pupil_src/shared_modules/data_changed.py index 1ec45c0657..6edfb22e54 100644 --- a/pupil_src/shared_modules/data_changed.py +++ b/pupil_src/shared_modules/data_changed.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + """ Contains classes to announce available data between different plugins. Data (e.g. pupil positions or gaze) is produced by some plugins and consumed by others. Data diff --git a/pupil_src/shared_modules/file_methods.py b/pupil_src/shared_modules/file_methods.py index b5d1a3b735..ccbfec387d 100644 --- a/pupil_src/shared_modules/file_methods.py +++ b/pupil_src/shared_modules/file_methods.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import collections.abc import copy diff --git a/pupil_src/shared_modules/fixation_detector.py b/pupil_src/shared_modules/fixation_detector.py index c3e62b5e17..13adbc0357 100644 --- a/pupil_src/shared_modules/fixation_detector.py +++ b/pupil_src/shared_modules/fixation_detector.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + """ Fixations general knowledge from literature review + Goldberg et al. - fixations rarely < 100ms and range between 200ms and 400ms in diff --git a/pupil_src/shared_modules/gaze_mapping/__init__.py b/pupil_src/shared_modules/gaze_mapping/__init__.py index 7819fa882f..b7d825a868 100644 --- a/pupil_src/shared_modules/gaze_mapping/__init__.py +++ b/pupil_src/shared_modules/gaze_mapping/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from typing import Dict, List, Type from . import gazer_base, matching diff --git a/pupil_src/shared_modules/gaze_mapping/gazer_2d.py b/pupil_src/shared_modules/gaze_mapping/gazer_2d.py index a8933b0b9e..68cbfd0101 100644 --- a/pupil_src/shared_modules/gaze_mapping/gazer_2d.py +++ b/pupil_src/shared_modules/gaze_mapping/gazer_2d.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging import typing as T diff --git a/pupil_src/shared_modules/gaze_mapping/gazer_3d/__init__.py b/pupil_src/shared_modules/gaze_mapping/gazer_3d/__init__.py index 3c731fe097..65720f0577 100644 --- a/pupil_src/shared_modules/gaze_mapping/gazer_3d/__init__.py +++ b/pupil_src/shared_modules/gaze_mapping/gazer_3d/__init__.py @@ -8,5 +8,6 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .gazer_headset import Gazer3D, NeonGazer3D from .gazer_hmd import GazerHMD3D, PosthocGazerHMD3D diff --git a/pupil_src/shared_modules/gaze_mapping/gazer_3d/bundle_adjustment.py b/pupil_src/shared_modules/gaze_mapping/gazer_3d/bundle_adjustment.py index 29de737f6d..fffc5bd520 100644 --- a/pupil_src/shared_modules/gaze_mapping/gazer_3d/bundle_adjustment.py +++ b/pupil_src/shared_modules/gaze_mapping/gazer_3d/bundle_adjustment.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import cv2 import numpy as np from scipy import optimize as scipy_optimize diff --git a/pupil_src/shared_modules/gaze_mapping/gazer_3d/calibrate_3d.py b/pupil_src/shared_modules/gaze_mapping/gazer_3d/calibrate_3d.py index d8fb922aea..7b544b1fc9 100644 --- a/pupil_src/shared_modules/gaze_mapping/gazer_3d/calibrate_3d.py +++ b/pupil_src/shared_modules/gaze_mapping/gazer_3d/calibrate_3d.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import cv2 import numpy as np diff --git a/pupil_src/shared_modules/gaze_mapping/gazer_3d/gazer_headset.py b/pupil_src/shared_modules/gaze_mapping/gazer_3d/gazer_headset.py index 300167b7e7..ed428bca9a 100644 --- a/pupil_src/shared_modules/gaze_mapping/gazer_3d/gazer_headset.py +++ b/pupil_src/shared_modules/gaze_mapping/gazer_3d/gazer_headset.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging import typing as T diff --git a/pupil_src/shared_modules/gaze_mapping/gazer_3d/gazer_hmd.py b/pupil_src/shared_modules/gaze_mapping/gazer_3d/gazer_hmd.py index 2f99880ccb..da32de09ba 100644 --- a/pupil_src/shared_modules/gaze_mapping/gazer_3d/gazer_hmd.py +++ b/pupil_src/shared_modules/gaze_mapping/gazer_3d/gazer_hmd.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T @@ -216,11 +217,13 @@ def _gazer_description_text(cls) -> str: def _extract_reference_features(self, ref_data) -> np.ndarray: ref_3d = np.array( [ - ref["mm_pos"] - if ref["mm_pos"] is not None - else self.g_pool.capture.intrinsics.unprojectPoints( - ref["screen_pos"], normalize=True - ).reshape(-1) + ( + ref["mm_pos"] + if ref["mm_pos"] is not None + else self.g_pool.capture.intrinsics.unprojectPoints( + ref["screen_pos"], normalize=True + ).reshape(-1) + ) for ref in ref_data ] ) diff --git a/pupil_src/shared_modules/gaze_mapping/gazer_3d/utils.py b/pupil_src/shared_modules/gaze_mapping/gazer_3d/utils.py index a5962ddc3f..34a79ecd75 100644 --- a/pupil_src/shared_modules/gaze_mapping/gazer_3d/utils.py +++ b/pupil_src/shared_modules/gaze_mapping/gazer_3d/utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import cv2 import numpy as np diff --git a/pupil_src/shared_modules/gaze_mapping/gazer_base.py b/pupil_src/shared_modules/gaze_mapping/gazer_base.py index e8b0f9bff5..384ab63275 100644 --- a/pupil_src/shared_modules/gaze_mapping/gazer_base.py +++ b/pupil_src/shared_modules/gaze_mapping/gazer_base.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import collections import itertools diff --git a/pupil_src/shared_modules/gaze_mapping/matching.py b/pupil_src/shared_modules/gaze_mapping/matching.py index afb1374dd4..49caecfe77 100644 --- a/pupil_src/shared_modules/gaze_mapping/matching.py +++ b/pupil_src/shared_modules/gaze_mapping/matching.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import typing as T from collections import deque diff --git a/pupil_src/shared_modules/gaze_mapping/notifications.py b/pupil_src/shared_modules/gaze_mapping/notifications.py index a265fd3322..fe61c59a35 100644 --- a/pupil_src/shared_modules/gaze_mapping/notifications.py +++ b/pupil_src/shared_modules/gaze_mapping/notifications.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from __future__ import annotations import sys diff --git a/pupil_src/shared_modules/gaze_mapping/utils.py b/pupil_src/shared_modules/gaze_mapping/utils.py index 5672f6a151..d24e09ed48 100644 --- a/pupil_src/shared_modules/gaze_mapping/utils.py +++ b/pupil_src/shared_modules/gaze_mapping/utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import numpy as np diff --git a/pupil_src/shared_modules/gaze_producer/controller/__init__.py b/pupil_src/shared_modules/gaze_producer/controller/__init__.py index 0575fa8c90..a9cc39de80 100644 --- a/pupil_src/shared_modules/gaze_producer/controller/__init__.py +++ b/pupil_src/shared_modules/gaze_producer/controller/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from gaze_producer.controller.calculate_all_controller import CalculateAllController from gaze_producer.controller.calibration_controller import CalibrationController from gaze_producer.controller.gaze_mapper_controller import GazeMapperController diff --git a/pupil_src/shared_modules/gaze_producer/controller/calibration_controller.py b/pupil_src/shared_modules/gaze_producer/controller/calibration_controller.py index 6d3b45b17d..be35737ebe 100644 --- a/pupil_src/shared_modules/gaze_producer/controller/calibration_controller.py +++ b/pupil_src/shared_modules/gaze_producer/controller/calibration_controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import tasklib diff --git a/pupil_src/shared_modules/gaze_producer/controller/gaze_mapper_controller.py b/pupil_src/shared_modules/gaze_producer/controller/gaze_mapper_controller.py index e5c091b52d..9cb9c2bfe0 100644 --- a/pupil_src/shared_modules/gaze_producer/controller/gaze_mapper_controller.py +++ b/pupil_src/shared_modules/gaze_producer/controller/gaze_mapper_controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from itertools import chain diff --git a/pupil_src/shared_modules/gaze_producer/controller/reference_location_controllers.py b/pupil_src/shared_modules/gaze_producer/controller/reference_location_controllers.py index 623b554d82..f9a33fc9f3 100644 --- a/pupil_src/shared_modules/gaze_producer/controller/reference_location_controllers.py +++ b/pupil_src/shared_modules/gaze_producer/controller/reference_location_controllers.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import glfw diff --git a/pupil_src/shared_modules/gaze_producer/gaze_from_offline_calibration.py b/pupil_src/shared_modules/gaze_producer/gaze_from_offline_calibration.py index 888a25d2c0..98118771ed 100644 --- a/pupil_src/shared_modules/gaze_producer/gaze_from_offline_calibration.py +++ b/pupil_src/shared_modules/gaze_producer/gaze_from_offline_calibration.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import data_changed from gaze_producer import controller, model from gaze_producer import ui as plugin_ui diff --git a/pupil_src/shared_modules/gaze_producer/gaze_from_recording.py b/pupil_src/shared_modules/gaze_producer/gaze_from_recording.py index 95bbd21ba6..96b3e2701d 100644 --- a/pupil_src/shared_modules/gaze_producer/gaze_from_recording.py +++ b/pupil_src/shared_modules/gaze_producer/gaze_from_recording.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import file_methods as fm import player_methods as pm from gaze_producer.gaze_producer_base import GazeProducerBase diff --git a/pupil_src/shared_modules/gaze_producer/gaze_producer_base.py b/pupil_src/shared_modules/gaze_producer/gaze_producer_base.py index d37e198a78..8fbd4eaf6c 100644 --- a/pupil_src/shared_modules/gaze_producer/gaze_producer_base.py +++ b/pupil_src/shared_modules/gaze_producer/gaze_producer_base.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import data_changed diff --git a/pupil_src/shared_modules/gaze_producer/model/__init__.py b/pupil_src/shared_modules/gaze_producer/model/__init__.py index efe3293c6f..0bfe63b812 100644 --- a/pupil_src/shared_modules/gaze_producer/model/__init__.py +++ b/pupil_src/shared_modules/gaze_producer/model/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from gaze_producer.model.calibration import ( Calibration, CalibrationResult, diff --git a/pupil_src/shared_modules/gaze_producer/model/calibration.py b/pupil_src/shared_modules/gaze_producer/model/calibration.py index 9e98942a96..cf82245300 100644 --- a/pupil_src/shared_modules/gaze_producer/model/calibration.py +++ b/pupil_src/shared_modules/gaze_producer/model/calibration.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import copy import typing as T from collections import namedtuple diff --git a/pupil_src/shared_modules/gaze_producer/model/calibration_storage.py b/pupil_src/shared_modules/gaze_producer/model/calibration_storage.py index 4bf51f9356..d69f8ed2e5 100644 --- a/pupil_src/shared_modules/gaze_producer/model/calibration_storage.py +++ b/pupil_src/shared_modules/gaze_producer/model/calibration_storage.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import copy import logging import os diff --git a/pupil_src/shared_modules/gaze_producer/model/gaze_mapper.py b/pupil_src/shared_modules/gaze_producer/model/gaze_mapper.py index 1407a42c38..74523e7c2b 100644 --- a/pupil_src/shared_modules/gaze_producer/model/gaze_mapper.py +++ b/pupil_src/shared_modules/gaze_producer/model/gaze_mapper.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from storage import StorageItem diff --git a/pupil_src/shared_modules/gaze_producer/model/gaze_mapper_storage.py b/pupil_src/shared_modules/gaze_producer/model/gaze_mapper_storage.py index 5f5035a4c9..adf0b32f14 100644 --- a/pupil_src/shared_modules/gaze_producer/model/gaze_mapper_storage.py +++ b/pupil_src/shared_modules/gaze_producer/model/gaze_mapper_storage.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import os diff --git a/pupil_src/shared_modules/gaze_producer/model/legacy/calibration_storage_updater.py b/pupil_src/shared_modules/gaze_producer/model/legacy/calibration_storage_updater.py index b0cb11396d..2ffb3af769 100644 --- a/pupil_src/shared_modules/gaze_producer/model/legacy/calibration_storage_updater.py +++ b/pupil_src/shared_modules/gaze_producer/model/legacy/calibration_storage_updater.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T diff --git a/pupil_src/shared_modules/gaze_producer/model/legacy/calibration_v1.py b/pupil_src/shared_modules/gaze_producer/model/legacy/calibration_v1.py index f82cee48ea..0765a5c45e 100644 --- a/pupil_src/shared_modules/gaze_producer/model/legacy/calibration_v1.py +++ b/pupil_src/shared_modules/gaze_producer/model/legacy/calibration_v1.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T from collections import namedtuple diff --git a/pupil_src/shared_modules/gaze_producer/model/reference_location.py b/pupil_src/shared_modules/gaze_producer/model/reference_location.py index ef2415e45c..c7b92a1e89 100644 --- a/pupil_src/shared_modules/gaze_producer/model/reference_location.py +++ b/pupil_src/shared_modules/gaze_producer/model/reference_location.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from dataclasses import dataclass from typing import ClassVar, Optional, Tuple diff --git a/pupil_src/shared_modules/gaze_producer/model/reference_location_storage.py b/pupil_src/shared_modules/gaze_producer/model/reference_location_storage.py index f9462dffc6..33b909ec66 100644 --- a/pupil_src/shared_modules/gaze_producer/model/reference_location_storage.py +++ b/pupil_src/shared_modules/gaze_producer/model/reference_location_storage.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import os from dataclasses import MISSING, fields diff --git a/pupil_src/shared_modules/gaze_producer/ui/__init__.py b/pupil_src/shared_modules/gaze_producer/ui/__init__.py index bdcc354d15..c32ebdf6d6 100644 --- a/pupil_src/shared_modules/gaze_producer/ui/__init__.py +++ b/pupil_src/shared_modules/gaze_producer/ui/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + # isort: skip_file # Import order matters for this module! diff --git a/pupil_src/shared_modules/gaze_producer/ui/calibration_menu.py b/pupil_src/shared_modules/gaze_producer/ui/calibration_menu.py index f16f92b9a5..b39c6b53c2 100644 --- a/pupil_src/shared_modules/gaze_producer/ui/calibration_menu.py +++ b/pupil_src/shared_modules/gaze_producer/ui/calibration_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from gaze_mapping import ( diff --git a/pupil_src/shared_modules/gaze_producer/ui/gaze_mapper_timeline.py b/pupil_src/shared_modules/gaze_producer/ui/gaze_mapper_timeline.py index 68f3e21a1e..30c56e6a5a 100644 --- a/pupil_src/shared_modules/gaze_producer/ui/gaze_mapper_timeline.py +++ b/pupil_src/shared_modules/gaze_producer/ui/gaze_mapper_timeline.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from plugin_timeline import RangeElementFrameIdx, Row # TODO: add an observer to refresh the timeline when the selected calibration of a diff --git a/pupil_src/shared_modules/gaze_producer/ui/on_top_menu.py b/pupil_src/shared_modules/gaze_producer/ui/on_top_menu.py index 9d767d39a0..e3c8595f0f 100644 --- a/pupil_src/shared_modules/gaze_producer/ui/on_top_menu.py +++ b/pupil_src/shared_modules/gaze_producer/ui/on_top_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from pyglui import ui diff --git a/pupil_src/shared_modules/gaze_producer/ui/reference_location_menu.py b/pupil_src/shared_modules/gaze_producer/ui/reference_location_menu.py index c6a5d019b6..d4044808dc 100644 --- a/pupil_src/shared_modules/gaze_producer/ui/reference_location_menu.py +++ b/pupil_src/shared_modules/gaze_producer/ui/reference_location_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from pyglui import ui diff --git a/pupil_src/shared_modules/gaze_producer/ui/reference_location_renderer.py b/pupil_src/shared_modules/gaze_producer/ui/reference_location_renderer.py index fac88b34cb..a5c077b718 100644 --- a/pupil_src/shared_modules/gaze_producer/ui/reference_location_renderer.py +++ b/pupil_src/shared_modules/gaze_producer/ui/reference_location_renderer.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import gl_utils import pyglui.cygl.utils as cygl_utils diff --git a/pupil_src/shared_modules/gaze_producer/ui/reference_location_timeline.py b/pupil_src/shared_modules/gaze_producer/ui/reference_location_timeline.py index b0b51440dc..4f7d28fb6c 100644 --- a/pupil_src/shared_modules/gaze_producer/ui/reference_location_timeline.py +++ b/pupil_src/shared_modules/gaze_producer/ui/reference_location_timeline.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from plugin_timeline import BarsElementTs, RangeElementFramePerc, Row diff --git a/pupil_src/shared_modules/gaze_producer/ui/select_and_refresh_menu.py b/pupil_src/shared_modules/gaze_producer/ui/select_and_refresh_menu.py index 9244bc38ab..75783bdf03 100644 --- a/pupil_src/shared_modules/gaze_producer/ui/select_and_refresh_menu.py +++ b/pupil_src/shared_modules/gaze_producer/ui/select_and_refresh_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc from pyglui import ui diff --git a/pupil_src/shared_modules/gaze_producer/ui/storage_edit_menu.py b/pupil_src/shared_modules/gaze_producer/ui/storage_edit_menu.py index ba9d9d26cb..fd8003056e 100644 --- a/pupil_src/shared_modules/gaze_producer/ui/storage_edit_menu.py +++ b/pupil_src/shared_modules/gaze_producer/ui/storage_edit_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging diff --git a/pupil_src/shared_modules/gaze_producer/worker/__init__.py b/pupil_src/shared_modules/gaze_producer/worker/__init__.py index cf4dc2ad5e..2d425d9f5f 100644 --- a/pupil_src/shared_modules/gaze_producer/worker/__init__.py +++ b/pupil_src/shared_modules/gaze_producer/worker/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from gaze_producer.worker import ( create_calibration, detect_circle_markers, diff --git a/pupil_src/shared_modules/gaze_producer/worker/create_calibration.py b/pupil_src/shared_modules/gaze_producer/worker/create_calibration.py index 87579bb88b..3b21fb3fdc 100644 --- a/pupil_src/shared_modules/gaze_producer/worker/create_calibration.py +++ b/pupil_src/shared_modules/gaze_producer/worker/create_calibration.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from time import time from types import SimpleNamespace diff --git a/pupil_src/shared_modules/gaze_producer/worker/detect_circle_markers.py b/pupil_src/shared_modules/gaze_producer/worker/detect_circle_markers.py index 7cb8537d66..cb46decdb9 100644 --- a/pupil_src/shared_modules/gaze_producer/worker/detect_circle_markers.py +++ b/pupil_src/shared_modules/gaze_producer/worker/detect_circle_markers.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import zmq_tools diff --git a/pupil_src/shared_modules/gaze_producer/worker/fake_gpool.py b/pupil_src/shared_modules/gaze_producer/worker/fake_gpool.py index 175f04e30b..0a294ad7b0 100644 --- a/pupil_src/shared_modules/gaze_producer/worker/fake_gpool.py +++ b/pupil_src/shared_modules/gaze_producer/worker/fake_gpool.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import os from time import time diff --git a/pupil_src/shared_modules/gaze_producer/worker/map_gaze.py b/pupil_src/shared_modules/gaze_producer/worker/map_gaze.py index 1a9868d06b..4b022243c6 100644 --- a/pupil_src/shared_modules/gaze_producer/worker/map_gaze.py +++ b/pupil_src/shared_modules/gaze_producer/worker/map_gaze.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import file_methods as fm import player_methods as pm import tasklib diff --git a/pupil_src/shared_modules/gaze_producer/worker/validate_gaze.py b/pupil_src/shared_modules/gaze_producer/worker/validate_gaze.py index 895b55d1cb..4f7cfc4c27 100644 --- a/pupil_src/shared_modules/gaze_producer/worker/validate_gaze.py +++ b/pupil_src/shared_modules/gaze_producer/worker/validate_gaze.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import player_methods as pm import tasklib from accuracy_visualizer import Accuracy_Visualizer diff --git a/pupil_src/shared_modules/gl_utils/__init__.py b/pupil_src/shared_modules/gl_utils/__init__.py index 32d6124892..64b987fbb7 100644 --- a/pupil_src/shared_modules/gl_utils/__init__.py +++ b/pupil_src/shared_modules/gl_utils/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .draw import draw_circle_filled_func_builder from .trackball import Trackball from .utils import ( diff --git a/pupil_src/shared_modules/gl_utils/draw.py b/pupil_src/shared_modules/gl_utils/draw.py index ab3db450f4..8cb9c3c492 100644 --- a/pupil_src/shared_modules/gl_utils/draw.py +++ b/pupil_src/shared_modules/gl_utils/draw.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import functools import typing as T diff --git a/pupil_src/shared_modules/gl_utils/trackball.py b/pupil_src/shared_modules/gl_utils/trackball.py index b164f4b9b0..589526bf26 100644 --- a/pupil_src/shared_modules/gl_utils/trackball.py +++ b/pupil_src/shared_modules/gl_utils/trackball.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from OpenGL.GL import ( GL_MODELVIEW, GL_PROJECTION, diff --git a/pupil_src/shared_modules/gl_utils/utils.py b/pupil_src/shared_modules/gl_utils/utils.py index 3564846509..b0d6e045d0 100644 --- a/pupil_src/shared_modules/gl_utils/utils.py +++ b/pupil_src/shared_modules/gl_utils/utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import contextlib import logging import math diff --git a/pupil_src/shared_modules/gl_utils/window_position_manager.py b/pupil_src/shared_modules/gl_utils/window_position_manager.py index 97fe2d7721..993fa03a8a 100644 --- a/pupil_src/shared_modules/gl_utils/window_position_manager.py +++ b/pupil_src/shared_modules/gl_utils/window_position_manager.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import platform import typing as T diff --git a/pupil_src/shared_modules/head_pose_tracker/__init__.py b/pupil_src/shared_modules/head_pose_tracker/__init__.py index 87503cdc98..70c8038696 100644 --- a/pupil_src/shared_modules/head_pose_tracker/__init__.py +++ b/pupil_src/shared_modules/head_pose_tracker/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + # Do not import Online/Offline_Head_Pose_Tracker plugins here! # If disobeyed background tasks will try to import them in the background # and fail. The plugins should not be required in the background. diff --git a/pupil_src/shared_modules/head_pose_tracker/base_head_pose_tracker.py b/pupil_src/shared_modules/head_pose_tracker/base_head_pose_tracker.py index ab8bda0f68..e385e82ac9 100644 --- a/pupil_src/shared_modules/head_pose_tracker/base_head_pose_tracker.py +++ b/pupil_src/shared_modules/head_pose_tracker/base_head_pose_tracker.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from observable import Observable from plugin import Plugin diff --git a/pupil_src/shared_modules/head_pose_tracker/controller/export_controller.py b/pupil_src/shared_modules/head_pose_tracker/controller/export_controller.py index 48b0c79182..7e6d7b3288 100644 --- a/pupil_src/shared_modules/head_pose_tracker/controller/export_controller.py +++ b/pupil_src/shared_modules/head_pose_tracker/controller/export_controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from head_pose_tracker import worker diff --git a/pupil_src/shared_modules/head_pose_tracker/controller/offline_detection_controller.py b/pupil_src/shared_modules/head_pose_tracker/controller/offline_detection_controller.py index b12826cc94..60bb7a0e27 100644 --- a/pupil_src/shared_modules/head_pose_tracker/controller/offline_detection_controller.py +++ b/pupil_src/shared_modules/head_pose_tracker/controller/offline_detection_controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import tasklib diff --git a/pupil_src/shared_modules/head_pose_tracker/controller/offline_localization_controller.py b/pupil_src/shared_modules/head_pose_tracker/controller/offline_localization_controller.py index 1e00614ec9..11dd1f816d 100644 --- a/pupil_src/shared_modules/head_pose_tracker/controller/offline_localization_controller.py +++ b/pupil_src/shared_modules/head_pose_tracker/controller/offline_localization_controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import tasklib diff --git a/pupil_src/shared_modules/head_pose_tracker/controller/offline_optimization_controller.py b/pupil_src/shared_modules/head_pose_tracker/controller/offline_optimization_controller.py index 90e2c48842..f736b4b007 100644 --- a/pupil_src/shared_modules/head_pose_tracker/controller/offline_optimization_controller.py +++ b/pupil_src/shared_modules/head_pose_tracker/controller/offline_optimization_controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import tasklib diff --git a/pupil_src/shared_modules/head_pose_tracker/controller/online_controller.py b/pupil_src/shared_modules/head_pose_tracker/controller/online_controller.py index 85a51d55cb..83e653ff0d 100644 --- a/pupil_src/shared_modules/head_pose_tracker/controller/online_controller.py +++ b/pupil_src/shared_modules/head_pose_tracker/controller/online_controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import tasklib from head_pose_tracker import worker from head_pose_tracker.function import pick_key_markers diff --git a/pupil_src/shared_modules/head_pose_tracker/function/__init__.py b/pupil_src/shared_modules/head_pose_tracker/function/__init__.py index 84c9fba422..0835be9250 100644 --- a/pupil_src/shared_modules/head_pose_tracker/function/__init__.py +++ b/pupil_src/shared_modules/head_pose_tracker/function/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from head_pose_tracker.function import ( get_initial_guess, pick_key_markers, diff --git a/pupil_src/shared_modules/head_pose_tracker/function/bundle_adjustment.py b/pupil_src/shared_modules/head_pose_tracker/function/bundle_adjustment.py index 7fbf3497ff..84f5ef25b7 100644 --- a/pupil_src/shared_modules/head_pose_tracker/function/bundle_adjustment.py +++ b/pupil_src/shared_modules/head_pose_tracker/function/bundle_adjustment.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import logging diff --git a/pupil_src/shared_modules/head_pose_tracker/function/get_initial_guess.py b/pupil_src/shared_modules/head_pose_tracker/function/get_initial_guess.py index f6301518b4..c6534433d5 100644 --- a/pupil_src/shared_modules/head_pose_tracker/function/get_initial_guess.py +++ b/pupil_src/shared_modules/head_pose_tracker/function/get_initial_guess.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import numpy as np diff --git a/pupil_src/shared_modules/head_pose_tracker/function/pick_key_markers.py b/pupil_src/shared_modules/head_pose_tracker/function/pick_key_markers.py index 8c070103a0..4d9e22c4ef 100644 --- a/pupil_src/shared_modules/head_pose_tracker/function/pick_key_markers.py +++ b/pupil_src/shared_modules/head_pose_tracker/function/pick_key_markers.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import numpy as np diff --git a/pupil_src/shared_modules/head_pose_tracker/function/solvepnp.py b/pupil_src/shared_modules/head_pose_tracker/function/solvepnp.py index 0e01ec0cf4..8efaea3084 100644 --- a/pupil_src/shared_modules/head_pose_tracker/function/solvepnp.py +++ b/pupil_src/shared_modules/head_pose_tracker/function/solvepnp.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import numpy as np from head_pose_tracker.function import utils diff --git a/pupil_src/shared_modules/head_pose_tracker/function/triangulate_marker.py b/pupil_src/shared_modules/head_pose_tracker/function/triangulate_marker.py index cad1c8eb8a..63f5bb407a 100644 --- a/pupil_src/shared_modules/head_pose_tracker/function/triangulate_marker.py +++ b/pupil_src/shared_modules/head_pose_tracker/function/triangulate_marker.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import itertools import cv2 diff --git a/pupil_src/shared_modules/head_pose_tracker/function/utils.py b/pupil_src/shared_modules/head_pose_tracker/function/utils.py index 5959547e41..4b498d9d19 100644 --- a/pupil_src/shared_modules/head_pose_tracker/function/utils.py +++ b/pupil_src/shared_modules/head_pose_tracker/function/utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import functools import logging import time diff --git a/pupil_src/shared_modules/head_pose_tracker/offline_head_pose_tracker.py b/pupil_src/shared_modules/head_pose_tracker/offline_head_pose_tracker.py index dad066556d..e9f6ec1403 100644 --- a/pupil_src/shared_modules/head_pose_tracker/offline_head_pose_tracker.py +++ b/pupil_src/shared_modules/head_pose_tracker/offline_head_pose_tracker.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import player_methods as pm from head_pose_tracker import controller, storage from head_pose_tracker import ui as plugin_ui diff --git a/pupil_src/shared_modules/head_pose_tracker/storage/detection_storage.py b/pupil_src/shared_modules/head_pose_tracker/storage/detection_storage.py index 9b43675a66..63a56cd404 100644 --- a/pupil_src/shared_modules/head_pose_tracker/storage/detection_storage.py +++ b/pupil_src/shared_modules/head_pose_tracker/storage/detection_storage.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import os import file_methods as fm diff --git a/pupil_src/shared_modules/head_pose_tracker/storage/general_settings.py b/pupil_src/shared_modules/head_pose_tracker/storage/general_settings.py index 65d9a7b982..fc44d447d5 100644 --- a/pupil_src/shared_modules/head_pose_tracker/storage/general_settings.py +++ b/pupil_src/shared_modules/head_pose_tracker/storage/general_settings.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging import os diff --git a/pupil_src/shared_modules/head_pose_tracker/storage/localization_storage.py b/pupil_src/shared_modules/head_pose_tracker/storage/localization_storage.py index b1ad5f1609..341c26325d 100644 --- a/pupil_src/shared_modules/head_pose_tracker/storage/localization_storage.py +++ b/pupil_src/shared_modules/head_pose_tracker/storage/localization_storage.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import os diff --git a/pupil_src/shared_modules/head_pose_tracker/storage/optimization_storage.py b/pupil_src/shared_modules/head_pose_tracker/storage/optimization_storage.py index 32831fe05f..0cd8414e1e 100644 --- a/pupil_src/shared_modules/head_pose_tracker/storage/optimization_storage.py +++ b/pupil_src/shared_modules/head_pose_tracker/storage/optimization_storage.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import os import re diff --git a/pupil_src/shared_modules/head_pose_tracker/ui/__init__.py b/pupil_src/shared_modules/head_pose_tracker/ui/__init__.py index 96eb53c9a6..6d4d985c82 100644 --- a/pupil_src/shared_modules/head_pose_tracker/ui/__init__.py +++ b/pupil_src/shared_modules/head_pose_tracker/ui/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from head_pose_tracker.ui import gl_renderer_utils from head_pose_tracker.ui.detection_renderer import DetectionRenderer from head_pose_tracker.ui.gl_window import GLWindow diff --git a/pupil_src/shared_modules/head_pose_tracker/ui/detection_renderer.py b/pupil_src/shared_modules/head_pose_tracker/ui/detection_renderer.py index 4933c8b96a..4865d8c4f9 100644 --- a/pupil_src/shared_modules/head_pose_tracker/ui/detection_renderer.py +++ b/pupil_src/shared_modules/head_pose_tracker/ui/detection_renderer.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import cv2 import numpy as np from OpenGL import GL as gl diff --git a/pupil_src/shared_modules/head_pose_tracker/ui/gl_window.py b/pupil_src/shared_modules/head_pose_tracker/ui/gl_window.py index 6c943b966c..5f98160494 100644 --- a/pupil_src/shared_modules/head_pose_tracker/ui/gl_window.py +++ b/pupil_src/shared_modules/head_pose_tracker/ui/gl_window.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import os diff --git a/pupil_src/shared_modules/head_pose_tracker/ui/head_pose_tracker_3d_renderer.py b/pupil_src/shared_modules/head_pose_tracker/ui/head_pose_tracker_3d_renderer.py index 8a243aaf14..e6f553256a 100644 --- a/pupil_src/shared_modules/head_pose_tracker/ui/head_pose_tracker_3d_renderer.py +++ b/pupil_src/shared_modules/head_pose_tracker/ui/head_pose_tracker_3d_renderer.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import numpy as np from head_pose_tracker import ui as plugin_ui from head_pose_tracker.ui import gl_renderer_utils as utils diff --git a/pupil_src/shared_modules/head_pose_tracker/ui/offline_detection_menu.py b/pupil_src/shared_modules/head_pose_tracker/ui/offline_detection_menu.py index d83b660931..2c6e65946c 100644 --- a/pupil_src/shared_modules/head_pose_tracker/ui/offline_detection_menu.py +++ b/pupil_src/shared_modules/head_pose_tracker/ui/offline_detection_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from pyglui import ui diff --git a/pupil_src/shared_modules/head_pose_tracker/ui/offline_head_pose_tracker_menu.py b/pupil_src/shared_modules/head_pose_tracker/ui/offline_head_pose_tracker_menu.py index 944540af73..83926d2a36 100644 --- a/pupil_src/shared_modules/head_pose_tracker/ui/offline_head_pose_tracker_menu.py +++ b/pupil_src/shared_modules/head_pose_tracker/ui/offline_head_pose_tracker_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from pyglui import ui diff --git a/pupil_src/shared_modules/head_pose_tracker/ui/offline_localizaion_menu.py b/pupil_src/shared_modules/head_pose_tracker/ui/offline_localizaion_menu.py index 3f9ff7a5f3..3dd5e1909a 100644 --- a/pupil_src/shared_modules/head_pose_tracker/ui/offline_localizaion_menu.py +++ b/pupil_src/shared_modules/head_pose_tracker/ui/offline_localizaion_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from pyglui import ui @@ -63,9 +64,9 @@ def _create_range_selector(self): def _create_calculate_button(self): return ui.Button( - label="Recalculate" - if self._localization_storage.calculated - else "Calculate", + label=( + "Recalculate" if self._localization_storage.calculated else "Calculate" + ), function=self._on_click_calculate, ) diff --git a/pupil_src/shared_modules/head_pose_tracker/ui/offline_optimization_menu.py b/pupil_src/shared_modules/head_pose_tracker/ui/offline_optimization_menu.py index 322a3eb1b5..608bc6a1bb 100644 --- a/pupil_src/shared_modules/head_pose_tracker/ui/offline_optimization_menu.py +++ b/pupil_src/shared_modules/head_pose_tracker/ui/offline_optimization_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from pyglui import ui @@ -113,9 +114,9 @@ def _create_optimize_camera_intrinsics_switch(self): def _create_calculate_button(self): return ui.Button( - label="Recalculate" - if self._optimization_storage.calculated - else "Calculate", + label=( + "Recalculate" if self._optimization_storage.calculated else "Calculate" + ), function=self._on_calculate_button_clicked, ) diff --git a/pupil_src/shared_modules/head_pose_tracker/ui/online_head_pose_tracker_menu.py b/pupil_src/shared_modules/head_pose_tracker/ui/online_head_pose_tracker_menu.py index 08031f539a..ef81ece20b 100644 --- a/pupil_src/shared_modules/head_pose_tracker/ui/online_head_pose_tracker_menu.py +++ b/pupil_src/shared_modules/head_pose_tracker/ui/online_head_pose_tracker_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from pyglui import ui diff --git a/pupil_src/shared_modules/head_pose_tracker/ui/visualization_menu.py b/pupil_src/shared_modules/head_pose_tracker/ui/visualization_menu.py index 14cac763c6..9db0eb56f5 100644 --- a/pupil_src/shared_modules/head_pose_tracker/ui/visualization_menu.py +++ b/pupil_src/shared_modules/head_pose_tracker/ui/visualization_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from pyglui import ui _SPACES = " " diff --git a/pupil_src/shared_modules/head_pose_tracker/worker/__init__.py b/pupil_src/shared_modules/head_pose_tracker/worker/__init__.py index 1b5bbc688c..6807f55014 100644 --- a/pupil_src/shared_modules/head_pose_tracker/worker/__init__.py +++ b/pupil_src/shared_modules/head_pose_tracker/worker/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from head_pose_tracker.worker.detection_worker import ( offline_detection, online_detection, diff --git a/pupil_src/shared_modules/head_pose_tracker/worker/detection_worker.py b/pupil_src/shared_modules/head_pose_tracker/worker/detection_worker.py index d8c9dc14a6..d2b411534d 100644 --- a/pupil_src/shared_modules/head_pose_tracker/worker/detection_worker.py +++ b/pupil_src/shared_modules/head_pose_tracker/worker/detection_worker.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from types import SimpleNamespace diff --git a/pupil_src/shared_modules/head_pose_tracker/worker/export_worker.py b/pupil_src/shared_modules/head_pose_tracker/worker/export_worker.py index 32838fc7ab..d1baf5f6c0 100644 --- a/pupil_src/shared_modules/head_pose_tracker/worker/export_worker.py +++ b/pupil_src/shared_modules/head_pose_tracker/worker/export_worker.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import csv import logging import os diff --git a/pupil_src/shared_modules/head_pose_tracker/worker/optimization_worker.py b/pupil_src/shared_modules/head_pose_tracker/worker/optimization_worker.py index 581fbfd1fc..4f5a44ff12 100644 --- a/pupil_src/shared_modules/head_pose_tracker/worker/optimization_worker.py +++ b/pupil_src/shared_modules/head_pose_tracker/worker/optimization_worker.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import random diff --git a/pupil_src/shared_modules/imu_timeline.py b/pupil_src/shared_modules/imu_timeline.py index 282d0076ca..403066fe88 100644 --- a/pupil_src/shared_modules/imu_timeline.py +++ b/pupil_src/shared_modules/imu_timeline.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import csv import logging import os diff --git a/pupil_src/shared_modules/launchable_args.py b/pupil_src/shared_modules/launchable_args.py index f3f7660787..7eb6c733b5 100644 --- a/pupil_src/shared_modules/launchable_args.py +++ b/pupil_src/shared_modules/launchable_args.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import argparse import sys import typing as T diff --git a/pupil_src/shared_modules/make_unique.py b/pupil_src/shared_modules/make_unique.py index d047171fbe..41973cf978 100644 --- a/pupil_src/shared_modules/make_unique.py +++ b/pupil_src/shared_modules/make_unique.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import re diff --git a/pupil_src/shared_modules/marker_auto_trim_marks.py b/pupil_src/shared_modules/marker_auto_trim_marks.py index 75b814fa0f..e123578547 100644 --- a/pupil_src/shared_modules/marker_auto_trim_marks.py +++ b/pupil_src/shared_modules/marker_auto_trim_marks.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging logger = logging.getLogger(__name__) @@ -154,9 +155,9 @@ def update_bar_indicator(self, status): if status: self.menu[0].text = "Marker Auto uses the marker detector to get markers" else: - self.menu[ - 0 - ].text = "Marker Auto Trim Marks: Turn on Offline_Surface_Tracker!" + self.menu[0].text = ( + "Marker Auto Trim Marks: Turn on Offline_Surface_Tracker!" + ) def recent_events(self, events): frame = events.get("frame") diff --git a/pupil_src/shared_modules/math_helper/__init__.py b/pupil_src/shared_modules/math_helper/__init__.py index 99dd15e92c..d52244c265 100644 --- a/pupil_src/shared_modules/math_helper/__init__.py +++ b/pupil_src/shared_modules/math_helper/__init__.py @@ -8,4 +8,5 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .intersections import nearest_intersection diff --git a/pupil_src/shared_modules/math_helper/intersections.py b/pupil_src/shared_modules/math_helper/intersections.py index d71d2f71cc..b128577f3f 100644 --- a/pupil_src/shared_modules/math_helper/intersections.py +++ b/pupil_src/shared_modules/math_helper/intersections.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import sys import numpy as np diff --git a/pupil_src/shared_modules/methods.py b/pupil_src/shared_modules/methods.py index 4d7029a1f8..597164a10b 100644 --- a/pupil_src/shared_modules/methods.py +++ b/pupil_src/shared_modules/methods.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import getpass import logging import os diff --git a/pupil_src/shared_modules/network_api/__init__.py b/pupil_src/shared_modules/network_api/__init__.py index d3211fb19b..b0a28d3cdf 100644 --- a/pupil_src/shared_modules/network_api/__init__.py +++ b/pupil_src/shared_modules/network_api/__init__.py @@ -8,4 +8,5 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .network_api_plugin import NetworkApiPlugin diff --git a/pupil_src/shared_modules/network_api/controller/__init__.py b/pupil_src/shared_modules/network_api/controller/__init__.py index 35b1577838..65fee3cdff 100644 --- a/pupil_src/shared_modules/network_api/controller/__init__.py +++ b/pupil_src/shared_modules/network_api/controller/__init__.py @@ -8,5 +8,6 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .frame_publisher_controller import FramePublisherController from .pupil_remote_controller import PupilRemoteController diff --git a/pupil_src/shared_modules/network_api/controller/frame_publisher_controller.py b/pupil_src/shared_modules/network_api/controller/frame_publisher_controller.py index 085d021b7d..26414dc2b2 100644 --- a/pupil_src/shared_modules/network_api/controller/frame_publisher_controller.py +++ b/pupil_src/shared_modules/network_api/controller/frame_publisher_controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T diff --git a/pupil_src/shared_modules/network_api/controller/pupil_remote_controller.py b/pupil_src/shared_modules/network_api/controller/pupil_remote_controller.py index fe43f9ec6f..3122294021 100644 --- a/pupil_src/shared_modules/network_api/controller/pupil_remote_controller.py +++ b/pupil_src/shared_modules/network_api/controller/pupil_remote_controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import socket from time import sleep @@ -23,7 +24,6 @@ class PupilRemoteController(Observable): - """Pupil Remote Controller Send simple string messages to control Pupil Capture functions: diff --git a/pupil_src/shared_modules/network_api/model/__init__.py b/pupil_src/shared_modules/network_api/model/__init__.py index f8f71d4a3e..6f4cde8cb5 100644 --- a/pupil_src/shared_modules/network_api/model/__init__.py +++ b/pupil_src/shared_modules/network_api/model/__init__.py @@ -8,4 +8,5 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .frame_format import FrameFormat diff --git a/pupil_src/shared_modules/network_api/model/frame_format.py b/pupil_src/shared_modules/network_api/model/frame_format.py index f9e6ffcd27..a04d5cd1ab 100644 --- a/pupil_src/shared_modules/network_api/model/frame_format.py +++ b/pupil_src/shared_modules/network_api/model/frame_format.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import enum import typing as T diff --git a/pupil_src/shared_modules/network_api/network_api_plugin.py b/pupil_src/shared_modules/network_api/network_api_plugin.py index 79010a3ac0..eb7831adc5 100644 --- a/pupil_src/shared_modules/network_api/network_api_plugin.py +++ b/pupil_src/shared_modules/network_api/network_api_plugin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from plugin import Plugin diff --git a/pupil_src/shared_modules/network_api/ui/__init__.py b/pupil_src/shared_modules/network_api/ui/__init__.py index 8ea3430585..4ea3476f8c 100644 --- a/pupil_src/shared_modules/network_api/ui/__init__.py +++ b/pupil_src/shared_modules/network_api/ui/__init__.py @@ -8,5 +8,6 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .frame_publisher_menu import FramePublisherMenu from .pupil_remote_menu import PupilRemoteMenu diff --git a/pupil_src/shared_modules/network_api/ui/frame_publisher_menu.py b/pupil_src/shared_modules/network_api/ui/frame_publisher_menu.py index e46c11e1c7..1173dc2c85 100644 --- a/pupil_src/shared_modules/network_api/ui/frame_publisher_menu.py +++ b/pupil_src/shared_modules/network_api/ui/frame_publisher_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from network_api.controller import FramePublisherController diff --git a/pupil_src/shared_modules/network_api/ui/pupil_remote_menu.py b/pupil_src/shared_modules/network_api/ui/pupil_remote_menu.py index 269dc07861..a2fcd9ca50 100644 --- a/pupil_src/shared_modules/network_api/ui/pupil_remote_menu.py +++ b/pupil_src/shared_modules/network_api/ui/pupil_remote_menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import socket diff --git a/pupil_src/shared_modules/network_time_sync.py b/pupil_src/shared_modules/network_time_sync.py index 9e5e39e392..52526a767e 100644 --- a/pupil_src/shared_modules/network_time_sync.py +++ b/pupil_src/shared_modules/network_time_sync.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import functools import logging import socket diff --git a/pupil_src/shared_modules/observable.py b/pupil_src/shared_modules/observable.py index ff53635b05..b47acd1161 100644 --- a/pupil_src/shared_modules/observable.py +++ b/pupil_src/shared_modules/observable.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import functools import inspect import types diff --git a/pupil_src/shared_modules/player_methods.py b/pupil_src/shared_modules/player_methods.py index 204a00c093..19433e18ff 100644 --- a/pupil_src/shared_modules/player_methods.py +++ b/pupil_src/shared_modules/player_methods.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import functools import logging diff --git a/pupil_src/shared_modules/plugin.py b/pupil_src/shared_modules/plugin.py index a184edeb4e..b0b7f72b25 100644 --- a/pupil_src/shared_modules/plugin.py +++ b/pupil_src/shared_modules/plugin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import importlib import logging import os @@ -211,9 +212,9 @@ def notify_all(self, notification): if self.g_pool.app == "exporter": if notification.get("delay", 0): notification["_notify_time_"] = time() + notification["delay"] - self.g_pool.delayed_notifications[ - notification["subject"] - ] = notification + self.g_pool.delayed_notifications[notification["subject"]] = ( + notification + ) else: self.g_pool.notifications.append(notification) else: diff --git a/pupil_src/shared_modules/plugin_manager.py b/pupil_src/shared_modules/plugin_manager.py index 33fb54b4aa..6c336851a3 100644 --- a/pupil_src/shared_modules/plugin_manager.py +++ b/pupil_src/shared_modules/plugin_manager.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from calibration_choreography import CalibrationChoreographyPlugin diff --git a/pupil_src/shared_modules/plugin_timeline.py b/pupil_src/shared_modules/plugin_timeline.py index 072486fbac..1946994269 100644 --- a/pupil_src/shared_modules/plugin_timeline.py +++ b/pupil_src/shared_modules/plugin_timeline.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import gl_utils diff --git a/pupil_src/shared_modules/pupil_detector_plugins/__init__.py b/pupil_src/shared_modules/pupil_detector_plugins/__init__.py index dcf1f55cf0..aea1cefcbb 100644 --- a/pupil_src/shared_modules/pupil_detector_plugins/__init__.py +++ b/pupil_src/shared_modules/pupil_detector_plugins/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import traceback import typing as T diff --git a/pupil_src/shared_modules/pupil_detector_plugins/color_scheme.py b/pupil_src/shared_modules/pupil_detector_plugins/color_scheme.py index ac4ab971bc..356eddb06f 100644 --- a/pupil_src/shared_modules/pupil_detector_plugins/color_scheme.py +++ b/pupil_src/shared_modules/pupil_detector_plugins/color_scheme.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import functools import typing as T diff --git a/pupil_src/shared_modules/pupil_detector_plugins/detector_2d_plugin.py b/pupil_src/shared_modules/pupil_detector_plugins/detector_2d_plugin.py index 191d4540ae..bd9bb83814 100644 --- a/pupil_src/shared_modules/pupil_detector_plugins/detector_2d_plugin.py +++ b/pupil_src/shared_modules/pupil_detector_plugins/detector_2d_plugin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import glfw diff --git a/pupil_src/shared_modules/pupil_detector_plugins/detector_base_plugin.py b/pupil_src/shared_modules/pupil_detector_plugins/detector_base_plugin.py index 7a33efd896..61b541dc39 100644 --- a/pupil_src/shared_modules/pupil_detector_plugins/detector_base_plugin.py +++ b/pupil_src/shared_modules/pupil_detector_plugins/detector_base_plugin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging import re diff --git a/pupil_src/shared_modules/pupil_detector_plugins/pye3d_plugin.py b/pupil_src/shared_modules/pupil_detector_plugins/pye3d_plugin.py index f0900cdea8..ef159d73a1 100644 --- a/pupil_src/shared_modules/pupil_detector_plugins/pye3d_plugin.py +++ b/pupil_src/shared_modules/pupil_detector_plugins/pye3d_plugin.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import pye3d diff --git a/pupil_src/shared_modules/pupil_detector_plugins/visualizer_2d.py b/pupil_src/shared_modules/pupil_detector_plugins/visualizer_2d.py index 27d61c88c9..9be707a26e 100644 --- a/pupil_src/shared_modules/pupil_detector_plugins/visualizer_2d.py +++ b/pupil_src/shared_modules/pupil_detector_plugins/visualizer_2d.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from typing import Dict, Tuple diff --git a/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/__init__.py b/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/__init__.py index 0bcf4eaaa1..602ba86853 100644 --- a/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/__init__.py +++ b/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import math from collections import deque diff --git a/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/eye.py b/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/eye.py index d624bf19c1..a947583e7a 100644 --- a/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/eye.py +++ b/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/eye.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import cv2 import numpy as np from OpenGL.GL import * diff --git a/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/pose.py b/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/pose.py index d9d9cfd2e4..113a6b4459 100644 --- a/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/pose.py +++ b/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/pose.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import cv2 import numpy as np diff --git a/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/utilities.py b/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/utilities.py index 8c345a908d..bc1383112a 100644 --- a/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/utilities.py +++ b/pupil_src/shared_modules/pupil_detector_plugins/visualizer_pye3d/utilities.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import numpy as np diff --git a/pupil_src/shared_modules/pupil_groups.py b/pupil_src/shared_modules/pupil_groups.py index 5697228a8d..302feade7e 100644 --- a/pupil_src/shared_modules/pupil_groups.py +++ b/pupil_src/shared_modules/pupil_groups.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import time import traceback diff --git a/pupil_src/shared_modules/pupil_producers.py b/pupil_src/shared_modules/pupil_producers.py index 5a2a0e5c22..8a6a150540 100644 --- a/pupil_src/shared_modules/pupil_producers.py +++ b/pupil_src/shared_modules/pupil_producers.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging import os diff --git a/pupil_src/shared_modules/pupil_recording/__init__.py b/pupil_src/shared_modules/pupil_recording/__init__.py index 2399a76b4a..001ed7af2c 100644 --- a/pupil_src/shared_modules/pupil_recording/__init__.py +++ b/pupil_src/shared_modules/pupil_recording/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .info import RecordingInfo, RecordingInfoFile from .recording import PupilRecording from .recording_utils import InvalidRecordingException, assert_valid_recording_type diff --git a/pupil_src/shared_modules/pupil_recording/info/__init__.py b/pupil_src/shared_modules/pupil_recording/info/__init__.py index a6b9909643..c392f28225 100644 --- a/pupil_src/shared_modules/pupil_recording/info/__init__.py +++ b/pupil_src/shared_modules/pupil_recording/info/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from version_utils import parse_version from .recording_info import RecordingInfo, RecordingInfoFile diff --git a/pupil_src/shared_modules/pupil_recording/info/recording_info.py b/pupil_src/shared_modules/pupil_recording/info/recording_info.py index a102637177..6001eb4f5a 100644 --- a/pupil_src/shared_modules/pupil_recording/info/recording_info.py +++ b/pupil_src/shared_modules/pupil_recording/info/recording_info.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import collections import json diff --git a/pupil_src/shared_modules/pupil_recording/info/recording_info_2_0.py b/pupil_src/shared_modules/pupil_recording/info/recording_info_2_0.py index 0cb5eaae9e..3527580dac 100644 --- a/pupil_src/shared_modules/pupil_recording/info/recording_info_2_0.py +++ b/pupil_src/shared_modules/pupil_recording/info/recording_info_2_0.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import uuid from version_utils import ParsedVersion, parse_version diff --git a/pupil_src/shared_modules/pupil_recording/info/recording_info_2_3.py b/pupil_src/shared_modules/pupil_recording/info/recording_info_2_3.py index 8a7205d278..f67b66c9b1 100644 --- a/pupil_src/shared_modules/pupil_recording/info/recording_info_2_3.py +++ b/pupil_src/shared_modules/pupil_recording/info/recording_info_2_3.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from version_utils import ParsedVersion, parse_version from . import RecordingInfoFile diff --git a/pupil_src/shared_modules/pupil_recording/info/recording_info_utils.py b/pupil_src/shared_modules/pupil_recording/info/recording_info_utils.py index cf15621379..9e741cd97e 100644 --- a/pupil_src/shared_modules/pupil_recording/info/recording_info_utils.py +++ b/pupil_src/shared_modules/pupil_recording/info/recording_info_utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import json import os import typing as T diff --git a/pupil_src/shared_modules/pupil_recording/recording_utils.py b/pupil_src/shared_modules/pupil_recording/recording_utils.py index 67b33bdc7a..d9da024283 100644 --- a/pupil_src/shared_modules/pupil_recording/recording_utils.py +++ b/pupil_src/shared_modules/pupil_recording/recording_utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import enum import os from pathlib import Path diff --git a/pupil_src/shared_modules/pupil_recording/update/__init__.py b/pupil_src/shared_modules/pupil_recording/update/__init__.py index bd3792023e..663861be12 100644 --- a/pupil_src/shared_modules/pupil_recording/update/__init__.py +++ b/pupil_src/shared_modules/pupil_recording/update/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from types import SimpleNamespace diff --git a/pupil_src/shared_modules/pupil_recording/update/invisible.py b/pupil_src/shared_modules/pupil_recording/update/invisible.py index 5c0e9682ae..67c871bc30 100644 --- a/pupil_src/shared_modules/pupil_recording/update/invisible.py +++ b/pupil_src/shared_modules/pupil_recording/update/invisible.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import re import shutil diff --git a/pupil_src/shared_modules/pupil_recording/update/mobile.py b/pupil_src/shared_modules/pupil_recording/update/mobile.py index 80d4509489..5076084f6d 100644 --- a/pupil_src/shared_modules/pupil_recording/update/mobile.py +++ b/pupil_src/shared_modules/pupil_recording/update/mobile.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import re import uuid diff --git a/pupil_src/shared_modules/pupil_recording/update/new_style.py b/pupil_src/shared_modules/pupil_recording/update/new_style.py index 24276a8149..cf1fa704cc 100644 --- a/pupil_src/shared_modules/pupil_recording/update/new_style.py +++ b/pupil_src/shared_modules/pupil_recording/update/new_style.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import re from pathlib import Path diff --git a/pupil_src/shared_modules/pupil_recording/update/old_style.py b/pupil_src/shared_modules/pupil_recording/update/old_style.py index 3c744eb041..62acfb3cb8 100644 --- a/pupil_src/shared_modules/pupil_recording/update/old_style.py +++ b/pupil_src/shared_modules/pupil_recording/update/old_style.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import datetime import glob diff --git a/pupil_src/shared_modules/pupil_recording/update/update_utils.py b/pupil_src/shared_modules/pupil_recording/update/update_utils.py index a2bb600ced..a07fffdbee 100644 --- a/pupil_src/shared_modules/pupil_recording/update/update_utils.py +++ b/pupil_src/shared_modules/pupil_recording/update/update_utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T from pathlib import Path diff --git a/pupil_src/shared_modules/raw_data_exporter.py b/pupil_src/shared_modules/raw_data_exporter.py index 31c560a651..30a2ed5ade 100644 --- a/pupil_src/shared_modules/raw_data_exporter.py +++ b/pupil_src/shared_modules/raw_data_exporter.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import csv import logging diff --git a/pupil_src/shared_modules/recorder.py b/pupil_src/shared_modules/recorder.py index 493138e2d2..f720a8b534 100644 --- a/pupil_src/shared_modules/recorder.py +++ b/pupil_src/shared_modules/recorder.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import errno import glob import logging diff --git a/pupil_src/shared_modules/remote_recorder.py b/pupil_src/shared_modules/remote_recorder.py index b98f046bbd..6b15f9c4b9 100644 --- a/pupil_src/shared_modules/remote_recorder.py +++ b/pupil_src/shared_modules/remote_recorder.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import ndsi diff --git a/pupil_src/shared_modules/roi.py b/pupil_src/shared_modules/roi.py index 217235b4e2..c57eb4964e 100644 --- a/pupil_src/shared_modules/roi.py +++ b/pupil_src/shared_modules/roi.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T from enum import Enum diff --git a/pupil_src/shared_modules/scan_path/__init__.py b/pupil_src/shared_modules/scan_path/__init__.py index 7ce5cba2ee..ba9b642941 100644 --- a/pupil_src/shared_modules/scan_path/__init__.py +++ b/pupil_src/shared_modules/scan_path/__init__.py @@ -8,4 +8,5 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .controller import ScanPathController diff --git a/pupil_src/shared_modules/scan_path/algorithm.py b/pupil_src/shared_modules/scan_path/algorithm.py index c43530f6ca..ad681fd4ea 100644 --- a/pupil_src/shared_modules/scan_path/algorithm.py +++ b/pupil_src/shared_modules/scan_path/algorithm.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import copy import functools diff --git a/pupil_src/shared_modules/scan_path/controller.py b/pupil_src/shared_modules/scan_path/controller.py index 33aa280d92..da10d1c383 100644 --- a/pupil_src/shared_modules/scan_path/controller.py +++ b/pupil_src/shared_modules/scan_path/controller.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging import os diff --git a/pupil_src/shared_modules/scan_path/storage.py b/pupil_src/shared_modules/scan_path/storage.py index 34f0c86da5..11812a419c 100644 --- a/pupil_src/shared_modules/scan_path/storage.py +++ b/pupil_src/shared_modules/scan_path/storage.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import contextlib import logging import os diff --git a/pupil_src/shared_modules/scan_path/tasks/__init__.py b/pupil_src/shared_modules/scan_path/tasks/__init__.py index 5430f04a71..38447abd96 100644 --- a/pupil_src/shared_modules/scan_path/tasks/__init__.py +++ b/pupil_src/shared_modules/scan_path/tasks/__init__.py @@ -8,5 +8,6 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .background import ScanPathBackgroundTask from .preprocessing import ScanPathPreprocessingTask diff --git a/pupil_src/shared_modules/scan_path/tasks/background.py b/pupil_src/shared_modules/scan_path/tasks/background.py index 0d0a01cf5a..7156bbbdae 100644 --- a/pupil_src/shared_modules/scan_path/tasks/background.py +++ b/pupil_src/shared_modules/scan_path/tasks/background.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from collections import namedtuple import numpy as np diff --git a/pupil_src/shared_modules/scan_path/tasks/base.py b/pupil_src/shared_modules/scan_path/tasks/base.py index 25472ad079..3d107c0069 100644 --- a/pupil_src/shared_modules/scan_path/tasks/base.py +++ b/pupil_src/shared_modules/scan_path/tasks/base.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc diff --git a/pupil_src/shared_modules/scan_path/tasks/preprocessing.py b/pupil_src/shared_modules/scan_path/tasks/preprocessing.py index e2d55742cc..5e8a074579 100644 --- a/pupil_src/shared_modules/scan_path/tasks/preprocessing.py +++ b/pupil_src/shared_modules/scan_path/tasks/preprocessing.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from collections import namedtuple from types import SimpleNamespace diff --git a/pupil_src/shared_modules/scan_path/utils.py b/pupil_src/shared_modules/scan_path/utils.py index 9ec1f731bd..3fd4d42e84 100644 --- a/pupil_src/shared_modules/scan_path/utils.py +++ b/pupil_src/shared_modules/scan_path/utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from time import monotonic from types import SimpleNamespace diff --git a/pupil_src/shared_modules/storage.py b/pupil_src/shared_modules/storage.py index cb57e2706a..f63de68669 100644 --- a/pupil_src/shared_modules/storage.py +++ b/pupil_src/shared_modules/storage.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging import os diff --git a/pupil_src/shared_modules/surface_tracker/background_tasks.py b/pupil_src/shared_modules/surface_tracker/background_tasks.py index 69e16ada24..398c03856e 100644 --- a/pupil_src/shared_modules/surface_tracker/background_tasks.py +++ b/pupil_src/shared_modules/surface_tracker/background_tasks.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import csv import itertools import logging diff --git a/pupil_src/shared_modules/surface_tracker/cache.py b/pupil_src/shared_modules/surface_tracker/cache.py index d94ea258e6..8fb02d65d3 100644 --- a/pupil_src/shared_modules/surface_tracker/cache.py +++ b/pupil_src/shared_modules/surface_tracker/cache.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging logger = logging.getLogger(__name__) diff --git a/pupil_src/shared_modules/surface_tracker/gui.py b/pupil_src/shared_modules/surface_tracker/gui.py index 67a2851f10..31c7826195 100644 --- a/pupil_src/shared_modules/surface_tracker/gui.py +++ b/pupil_src/shared_modules/surface_tracker/gui.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import platform import typing from enum import Enum diff --git a/pupil_src/shared_modules/surface_tracker/offline_utils.py b/pupil_src/shared_modules/surface_tracker/offline_utils.py index 6bb5bfac3f..4a1331f6dc 100644 --- a/pupil_src/shared_modules/surface_tracker/offline_utils.py +++ b/pupil_src/shared_modules/surface_tracker/offline_utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from .surface import Surface from .surface_marker_detector import MarkerDetectorController diff --git a/pupil_src/shared_modules/surface_tracker/surface.py b/pupil_src/shared_modules/surface_tracker/surface.py index 9e68d7d410..6fdf19fd1e 100644 --- a/pupil_src/shared_modules/surface_tracker/surface.py +++ b/pupil_src/shared_modules/surface_tracker/surface.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging import typing diff --git a/pupil_src/shared_modules/surface_tracker/surface_file_store.py b/pupil_src/shared_modules/surface_tracker/surface_file_store.py index ec9812b5b0..e80cab2102 100644 --- a/pupil_src/shared_modules/surface_tracker/surface_file_store.py +++ b/pupil_src/shared_modules/surface_tracker/surface_file_store.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import functools import logging @@ -162,7 +163,9 @@ class Surface_File_Store(_Surface_File_Store_Base): def __init__(self, parent_dir, **kwargs): super().__init__(parent_dir=parent_dir, **kwargs) - self.__versioned_file_stores: Surface_File_Store.Versioned_File_Store_Mapping = { + self.__versioned_file_stores: ( + Surface_File_Store.Versioned_File_Store_Mapping + ) = { 0: _Surface_File_Store_V00(parent_dir=parent_dir), 1: _Surface_File_Store_V01(parent_dir=parent_dir), # Add any new file store versions here... diff --git a/pupil_src/shared_modules/surface_tracker/surface_marker.py b/pupil_src/shared_modules/surface_tracker/surface_marker.py index 79f14b1059..981d1b729c 100644 --- a/pupil_src/shared_modules/surface_tracker/surface_marker.py +++ b/pupil_src/shared_modules/surface_tracker/surface_marker.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import collections import enum diff --git a/pupil_src/shared_modules/surface_tracker/surface_marker_aggregate.py b/pupil_src/shared_modules/surface_tracker/surface_marker_aggregate.py index a6d3068bb3..f7bb53d720 100644 --- a/pupil_src/shared_modules/surface_tracker/surface_marker_aggregate.py +++ b/pupil_src/shared_modules/surface_tracker/surface_marker_aggregate.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import typing import numpy as np diff --git a/pupil_src/shared_modules/surface_tracker/surface_marker_detector.py b/pupil_src/shared_modules/surface_tracker/surface_marker_detector.py index 95462d5cac..e7c73c47ef 100644 --- a/pupil_src/shared_modules/surface_tracker/surface_marker_detector.py +++ b/pupil_src/shared_modules/surface_tracker/surface_marker_detector.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import enum import logging diff --git a/pupil_src/shared_modules/surface_tracker/surface_offline.py b/pupil_src/shared_modules/surface_tracker/surface_offline.py index bb3e2efc0c..2026a59c9e 100644 --- a/pupil_src/shared_modules/surface_tracker/surface_offline.py +++ b/pupil_src/shared_modules/surface_tracker/surface_offline.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import multiprocessing import platform diff --git a/pupil_src/shared_modules/surface_tracker/surface_online.py b/pupil_src/shared_modules/surface_tracker/surface_online.py index 265db4b718..82f243ccfa 100644 --- a/pupil_src/shared_modules/surface_tracker/surface_online.py +++ b/pupil_src/shared_modules/surface_tracker/surface_online.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections from .surface import Surface diff --git a/pupil_src/shared_modules/surface_tracker/surface_serializer.py b/pupil_src/shared_modules/surface_tracker/surface_serializer.py index b1f31ac88a..6c53d4bb03 100644 --- a/pupil_src/shared_modules/surface_tracker/surface_serializer.py +++ b/pupil_src/shared_modules/surface_tracker/surface_serializer.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import functools import logging diff --git a/pupil_src/shared_modules/surface_tracker/surface_tracker.py b/pupil_src/shared_modules/surface_tracker/surface_tracker.py index 8206bfb927..9958fa3515 100644 --- a/pupil_src/shared_modules/surface_tracker/surface_tracker.py +++ b/pupil_src/shared_modules/surface_tracker/surface_tracker.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T from abc import ABCMeta, abstractmethod diff --git a/pupil_src/shared_modules/surface_tracker/surface_tracker_offline.py b/pupil_src/shared_modules/surface_tracker/surface_tracker_offline.py index 089b880145..8068017c46 100644 --- a/pupil_src/shared_modules/surface_tracker/surface_tracker_offline.py +++ b/pupil_src/shared_modules/surface_tracker/surface_tracker_offline.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import itertools import logging import multiprocessing diff --git a/pupil_src/shared_modules/surface_tracker/surface_tracker_online.py b/pupil_src/shared_modules/surface_tracker/surface_tracker_online.py index 201c818e54..e8cadbd6d0 100644 --- a/pupil_src/shared_modules/surface_tracker/surface_tracker_online.py +++ b/pupil_src/shared_modules/surface_tracker/surface_tracker_online.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging logger = logging.getLogger(__name__) diff --git a/pupil_src/shared_modules/system_graphs.py b/pupil_src/shared_modules/system_graphs.py index 698f823edd..6ce07190fb 100644 --- a/pupil_src/shared_modules/system_graphs.py +++ b/pupil_src/shared_modules/system_graphs.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import os import gl_utils diff --git a/pupil_src/shared_modules/system_timelines.py b/pupil_src/shared_modules/system_timelines.py index 496ce299e7..1bcc437cce 100644 --- a/pupil_src/shared_modules/system_timelines.py +++ b/pupil_src/shared_modules/system_timelines.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import data_changed import gl_utils import numpy as np diff --git a/pupil_src/shared_modules/tasklib/__init__.py b/pupil_src/shared_modules/tasklib/__init__.py index 51688a7145..f6e8bd6e94 100644 --- a/pupil_src/shared_modules/tasklib/__init__.py +++ b/pupil_src/shared_modules/tasklib/__init__.py @@ -8,4 +8,5 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from tasklib.observers import raise_exception diff --git a/pupil_src/shared_modules/tasklib/background/__init__.py b/pupil_src/shared_modules/tasklib/background/__init__.py index 798f7b0ddc..d8cf562251 100644 --- a/pupil_src/shared_modules/tasklib/background/__init__.py +++ b/pupil_src/shared_modules/tasklib/background/__init__.py @@ -8,4 +8,5 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from tasklib.background.create import create diff --git a/pupil_src/shared_modules/tasklib/background/create.py b/pupil_src/shared_modules/tasklib/background/create.py index ce87b99605..5f94e5327a 100644 --- a/pupil_src/shared_modules/tasklib/background/create.py +++ b/pupil_src/shared_modules/tasklib/background/create.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import inspect from tasklib.background.patches import IPCLoggingPatch, KeyboardInterruptHandlerPatch diff --git a/pupil_src/shared_modules/tasklib/background/patches.py b/pupil_src/shared_modules/tasklib/background/patches.py index 3bacc6d504..9b286b4ee3 100644 --- a/pupil_src/shared_modules/tasklib/background/patches.py +++ b/pupil_src/shared_modules/tasklib/background/patches.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc diff --git a/pupil_src/shared_modules/tasklib/background/shared_memory.py b/pupil_src/shared_modules/tasklib/background/shared_memory.py index b53c1a04ee..f2bd1da024 100644 --- a/pupil_src/shared_modules/tasklib/background/shared_memory.py +++ b/pupil_src/shared_modules/tasklib/background/shared_memory.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import multiprocessing as mp from ctypes import c_bool, c_double diff --git a/pupil_src/shared_modules/tasklib/background/task.py b/pupil_src/shared_modules/tasklib/background/task.py index 45d3131613..770cad470e 100644 --- a/pupil_src/shared_modules/tasklib/background/task.py +++ b/pupil_src/shared_modules/tasklib/background/task.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import multiprocessing as mp import typing diff --git a/pupil_src/shared_modules/tasklib/interface.py b/pupil_src/shared_modules/tasklib/interface.py index 9aca747180..9709b7c304 100644 --- a/pupil_src/shared_modules/tasklib/interface.py +++ b/pupil_src/shared_modules/tasklib/interface.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc from observable import Observable diff --git a/pupil_src/shared_modules/tasklib/observers.py b/pupil_src/shared_modules/tasklib/observers.py index f6b76e3458..8948833add 100644 --- a/pupil_src/shared_modules/tasklib/observers.py +++ b/pupil_src/shared_modules/tasklib/observers.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + """ (*)~--------------------------------------------------------------------------- Pupil - eye tracking platform diff --git a/pupil_src/shared_modules/video_capture/__init__.py b/pupil_src/shared_modules/video_capture/__init__.py index d18f12408e..83f2013cb0 100644 --- a/pupil_src/shared_modules/video_capture/__init__.py +++ b/pupil_src/shared_modules/video_capture/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + """ Video Capture provides the interface to get frames from diffferent backends. Backends consist of a manager and at least one source class. The manager diff --git a/pupil_src/shared_modules/video_capture/base_backend.py b/pupil_src/shared_modules/video_capture/base_backend.py index 6b051e067a..0940b895be 100644 --- a/pupil_src/shared_modules/video_capture/base_backend.py +++ b/pupil_src/shared_modules/video_capture/base_backend.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T from enum import IntEnum, auto diff --git a/pupil_src/shared_modules/video_capture/file_backend.py b/pupil_src/shared_modules/video_capture/file_backend.py index 922e43792e..5414ee9f83 100644 --- a/pupil_src/shared_modules/video_capture/file_backend.py +++ b/pupil_src/shared_modules/video_capture/file_backend.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + # logging import logging import os diff --git a/pupil_src/shared_modules/video_capture/hmd_streaming.py b/pupil_src/shared_modules/video_capture/hmd_streaming.py index 512f158530..772449b822 100644 --- a/pupil_src/shared_modules/video_capture/hmd_streaming.py +++ b/pupil_src/shared_modules/video_capture/hmd_streaming.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging from typing import Iterable, List, Optional, Tuple, Type diff --git a/pupil_src/shared_modules/video_capture/ndsi_backend.py b/pupil_src/shared_modules/video_capture/ndsi_backend.py index 8b5bf4addf..ac470b454f 100644 --- a/pupil_src/shared_modules/video_capture/ndsi_backend.py +++ b/pupil_src/shared_modules/video_capture/ndsi_backend.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import time diff --git a/pupil_src/shared_modules/video_capture/utils.py b/pupil_src/shared_modules/video_capture/utils.py index d31b3f9b59..9cd1b99a66 100644 --- a/pupil_src/shared_modules/video_capture/utils.py +++ b/pupil_src/shared_modules/video_capture/utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import os import typing as T diff --git a/pupil_src/shared_modules/video_capture/uvc_backend.py b/pupil_src/shared_modules/video_capture/uvc_backend.py index d9fab8ce6a..54ecde22ce 100644 --- a/pupil_src/shared_modules/video_capture/uvc_backend.py +++ b/pupil_src/shared_modules/video_capture/uvc_backend.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import enum import logging import platform diff --git a/pupil_src/shared_modules/video_export/plugin_base/isolated_frame_exporter.py b/pupil_src/shared_modules/video_export/plugin_base/isolated_frame_exporter.py index 1922eb4aa7..12fa6bc980 100644 --- a/pupil_src/shared_modules/video_export/plugin_base/isolated_frame_exporter.py +++ b/pupil_src/shared_modules/video_export/plugin_base/isolated_frame_exporter.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import os from glob import glob diff --git a/pupil_src/shared_modules/video_export/plugin_base/video_exporter.py b/pupil_src/shared_modules/video_export/plugin_base/video_exporter.py index 165d837132..d4378a6459 100644 --- a/pupil_src/shared_modules/video_export/plugin_base/video_exporter.py +++ b/pupil_src/shared_modules/video_export/plugin_base/video_exporter.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc from plugin import Plugin diff --git a/pupil_src/shared_modules/video_export/plugins/eye_video_exporter.py b/pupil_src/shared_modules/video_export/plugins/eye_video_exporter.py index 5d64755872..556c6e49a4 100644 --- a/pupil_src/shared_modules/video_export/plugins/eye_video_exporter.py +++ b/pupil_src/shared_modules/video_export/plugins/eye_video_exporter.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from pupil_detector_plugins import color_scheme diff --git a/pupil_src/shared_modules/video_export/plugins/imotions_exporter.py b/pupil_src/shared_modules/video_export/plugins/imotions_exporter.py index 04252975f6..564faffaee 100644 --- a/pupil_src/shared_modules/video_export/plugins/imotions_exporter.py +++ b/pupil_src/shared_modules/video_export/plugins/imotions_exporter.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import csv import datetime import logging diff --git a/pupil_src/shared_modules/video_export/plugins/world_video_exporter.py b/pupil_src/shared_modules/video_export/plugins/world_video_exporter.py index 5b24bca13f..a3ded28641 100644 --- a/pupil_src/shared_modules/video_export/plugins/world_video_exporter.py +++ b/pupil_src/shared_modules/video_export/plugins/world_video_exporter.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging import os diff --git a/pupil_src/shared_modules/video_overlay/controllers/overlay_manager.py b/pupil_src/shared_modules/video_overlay/controllers/overlay_manager.py index 6efc301856..c821a2bf8e 100644 --- a/pupil_src/shared_modules/video_overlay/controllers/overlay_manager.py +++ b/pupil_src/shared_modules/video_overlay/controllers/overlay_manager.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc from storage import SingleFileStorage diff --git a/pupil_src/shared_modules/video_overlay/models/config.py b/pupil_src/shared_modules/video_overlay/models/config.py index 84480d3b35..bb45f40bce 100644 --- a/pupil_src/shared_modules/video_overlay/models/config.py +++ b/pupil_src/shared_modules/video_overlay/models/config.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + from storage import StorageItem from video_overlay.utils.constraints import ( BooleanConstraint, diff --git a/pupil_src/shared_modules/video_overlay/plugins/eye_overlay.py b/pupil_src/shared_modules/video_overlay/plugins/eye_overlay.py index d1f3425fae..c2a7a149b9 100644 --- a/pupil_src/shared_modules/video_overlay/plugins/eye_overlay.py +++ b/pupil_src/shared_modules/video_overlay/plugins/eye_overlay.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import player_methods as pm from observable import Observable from plugin import Plugin diff --git a/pupil_src/shared_modules/video_overlay/plugins/generic_overlay.py b/pupil_src/shared_modules/video_overlay/plugins/generic_overlay.py index ec72400802..f3c6b0ef6b 100644 --- a/pupil_src/shared_modules/video_overlay/plugins/generic_overlay.py +++ b/pupil_src/shared_modules/video_overlay/plugins/generic_overlay.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import collections import os diff --git a/pupil_src/shared_modules/video_overlay/ui/interactions.py b/pupil_src/shared_modules/video_overlay/ui/interactions.py index 9fb5e35896..d39a258533 100644 --- a/pupil_src/shared_modules/video_overlay/ui/interactions.py +++ b/pupil_src/shared_modules/video_overlay/ui/interactions.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import gl_utils import glfw from gl_utils import GLFWErrorReporting diff --git a/pupil_src/shared_modules/video_overlay/ui/management.py b/pupil_src/shared_modules/video_overlay/ui/management.py index 6ff26642a2..01676427c1 100644 --- a/pupil_src/shared_modules/video_overlay/ui/management.py +++ b/pupil_src/shared_modules/video_overlay/ui/management.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import weakref from collections import OrderedDict diff --git a/pupil_src/shared_modules/video_overlay/ui/menu.py b/pupil_src/shared_modules/video_overlay/ui/menu.py index 444476d9cf..068183bbce 100644 --- a/pupil_src/shared_modules/video_overlay/ui/menu.py +++ b/pupil_src/shared_modules/video_overlay/ui/menu.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import os import weakref diff --git a/pupil_src/shared_modules/video_overlay/utils/constraints.py b/pupil_src/shared_modules/video_overlay/utils/constraints.py index 71901a3a6b..03dc635976 100644 --- a/pupil_src/shared_modules/video_overlay/utils/constraints.py +++ b/pupil_src/shared_modules/video_overlay/utils/constraints.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc INF = float("inf") diff --git a/pupil_src/shared_modules/video_overlay/utils/image_manipulation.py b/pupil_src/shared_modules/video_overlay/utils/image_manipulation.py index fcd0df63b8..9a9c509459 100644 --- a/pupil_src/shared_modules/video_overlay/utils/image_manipulation.py +++ b/pupil_src/shared_modules/video_overlay/utils/image_manipulation.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging diff --git a/pupil_src/shared_modules/video_overlay/workers/frame_fetcher.py b/pupil_src/shared_modules/video_overlay/workers/frame_fetcher.py index dbce86f056..4fcdcab577 100644 --- a/pupil_src/shared_modules/video_overlay/workers/frame_fetcher.py +++ b/pupil_src/shared_modules/video_overlay/workers/frame_fetcher.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from types import SimpleNamespace diff --git a/pupil_src/shared_modules/video_overlay/workers/overlay_renderer.py b/pupil_src/shared_modules/video_overlay/workers/overlay_renderer.py index c92dd84c65..4b06f41924 100644 --- a/pupil_src/shared_modules/video_overlay/workers/overlay_renderer.py +++ b/pupil_src/shared_modules/video_overlay/workers/overlay_renderer.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from collections import OrderedDict diff --git a/pupil_src/shared_modules/visualizer.py b/pupil_src/shared_modules/visualizer.py index fdd1a75ef7..08261aabf5 100644 --- a/pupil_src/shared_modules/visualizer.py +++ b/pupil_src/shared_modules/visualizer.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import gl_utils import glfw from gl_utils import GLFWErrorReporting diff --git a/pupil_src/shared_modules/zmq_tools.py b/pupil_src/shared_modules/zmq_tools.py index 362bbae57a..6b07c059dd 100644 --- a/pupil_src/shared_modules/zmq_tools.py +++ b/pupil_src/shared_modules/zmq_tools.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + """ This file contains convenience classes for communication with the Pupil IPC Backbone. These are intended to be used by plugins. diff --git a/pupil_src/tests/__init__.py b/pupil_src/tests/__init__.py index 4244930b95..3d12efbfad 100644 --- a/pupil_src/tests/__init__.py +++ b/pupil_src/tests/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import os import sys diff --git a/pupil_src/tests/annotations/test_annotation_deserialization.py b/pupil_src/tests/annotations/test_annotation_deserialization.py index d21350899d..6e59c855f9 100644 --- a/pupil_src/tests/annotations/test_annotation_deserialization.py +++ b/pupil_src/tests/annotations/test_annotation_deserialization.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import io import json diff --git a/pupil_src/tests/gaze_mapping/test_notifications.py b/pupil_src/tests/gaze_mapping/test_notifications.py index a5bf30a0e2..319b0fb695 100644 --- a/pupil_src/tests/gaze_mapping/test_notifications.py +++ b/pupil_src/tests/gaze_mapping/test_notifications.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import pytest from gaze_mapping.notifications import ( CalibrationFailureNotification, diff --git a/pupil_src/tests/surface_tracker/fixtures/__init__.py b/pupil_src/tests/surface_tracker/fixtures/__init__.py index 241da2d654..c58603014a 100644 --- a/pupil_src/tests/surface_tracker/fixtures/__init__.py +++ b/pupil_src/tests/surface_tracker/fixtures/__init__.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import typing from surface_tracker.surface import Surface diff --git a/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_definition_files.py b/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_definition_files.py index 12769a3a73..c653745991 100644 --- a/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_definition_files.py +++ b/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_definition_files.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import os import tempfile import typing diff --git a/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v00_square.py b/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v00_square.py index ba8585b727..b1907b3fc2 100644 --- a/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v00_square.py +++ b/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v00_square.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import typing import numpy as np diff --git a/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v01_apriltag.py b/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v01_apriltag.py index 92ed3e8857..045dc07391 100644 --- a/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v01_apriltag.py +++ b/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v01_apriltag.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import typing import numpy as np diff --git a/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v01_square.py b/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v01_square.py index f5c8bd8c91..36a3bb72d6 100644 --- a/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v01_square.py +++ b/pupil_src/tests/surface_tracker/fixtures/fixtures_surface_v01_square.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import typing import numpy as np diff --git a/pupil_src/tests/surface_tracker/test_surface_file_store.py b/pupil_src/tests/surface_tracker/test_surface_file_store.py index a627d805de..867b9efd91 100644 --- a/pupil_src/tests/surface_tracker/test_surface_file_store.py +++ b/pupil_src/tests/surface_tracker/test_surface_file_store.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import os import sys diff --git a/pupil_src/tests/surface_tracker/test_surface_serializer.py b/pupil_src/tests/surface_tracker/test_surface_serializer.py index a541b7db62..bc375bb491 100644 --- a/pupil_src/tests/surface_tracker/test_surface_serializer.py +++ b/pupil_src/tests/surface_tracker/test_surface_serializer.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import os import sys diff --git a/pupil_src/tests/test_csv_utils.py b/pupil_src/tests/test_csv_utils.py index 9d998ae97f..6120e9c418 100644 --- a/pupil_src/tests/test_csv_utils.py +++ b/pupil_src/tests/test_csv_utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import pytest from csv_utils import read_key_value_file, write_key_value_file diff --git a/pupil_src/tests/test_observable.py b/pupil_src/tests/test_observable.py index 61fca1a832..c5f0e31bac 100644 --- a/pupil_src/tests/test_observable.py +++ b/pupil_src/tests/test_observable.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import gc import types from unittest import mock diff --git a/pupil_src/tests/test_raw_data_exporter.py b/pupil_src/tests/test_raw_data_exporter.py index 5559ffbea7..5a0763c042 100644 --- a/pupil_src/tests/test_raw_data_exporter.py +++ b/pupil_src/tests/test_raw_data_exporter.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import pytest from raw_data_exporter import Gaze_Positions_Exporter, Pupil_Positions_Exporter diff --git a/pupil_src/tests/test_roi.py b/pupil_src/tests/test_roi.py index 364f059772..7391fb8f6b 100644 --- a/pupil_src/tests/test_roi.py +++ b/pupil_src/tests/test_roi.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import pytest from roi import RoiModel diff --git a/pupil_src/tests/test_stdlib_utils.py b/pupil_src/tests/test_stdlib_utils.py index 1a5bca7e03..2f4f3301dd 100644 --- a/pupil_src/tests/test_stdlib_utils.py +++ b/pupil_src/tests/test_stdlib_utils.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import pytest from stdlib_utils import is_none, is_not_none, unique diff --git a/pupil_src/tests/video_capture/common.py b/pupil_src/tests/video_capture/common.py index 716cb1efcb..359a70477c 100644 --- a/pupil_src/tests/video_capture/common.py +++ b/pupil_src/tests/video_capture/common.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import os broken_data = os.path.join( diff --git a/pupil_src/tests/video_capture/file_backend/test_file_backend.py b/pupil_src/tests/video_capture/file_backend/test_file_backend.py index 2872edeba5..f7cb815169 100644 --- a/pupil_src/tests/video_capture/file_backend/test_file_backend.py +++ b/pupil_src/tests/video_capture/file_backend/test_file_backend.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import logging from multiprocessing import cpu_count from types import SimpleNamespace diff --git a/update_license_header.py b/update_license_header.py index 3abbad3a90..a8347d5201 100644 --- a/update_license_header.py +++ b/update_license_header.py @@ -8,6 +8,7 @@ See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ + import argparse import fnmatch import os