|
3 | 3 | import threading
|
4 | 4 | from datetime import datetime
|
5 | 5 | import time
|
| 6 | +from typing import Tuple |
| 7 | + |
6 | 8 | from astropy.io import fits
|
7 | 9 |
|
8 | 10 | from pyobs.interfaces import ICamera, ICameraWindow, ICameraBinning, ICooling
|
@@ -66,23 +68,23 @@ def close(self):
|
66 | 68 | self._driver.close()
|
67 | 69 | self._driver = None
|
68 | 70 |
|
69 |
| - def get_full_frame(self, *args, **kwargs) -> (int, int, int, int): |
| 71 | + def get_full_frame(self, *args, **kwargs) -> Tuple[int, int, int, int]: |
70 | 72 | """Returns full size of CCD.
|
71 | 73 |
|
72 | 74 | Returns:
|
73 | 75 | Tuple with left, top, width, and height set.
|
74 | 76 | """
|
75 | 77 | return self._driver.get_full_frame()
|
76 | 78 |
|
77 |
| - def get_window(self, *args, **kwargs) -> (int, int, int, int): |
| 79 | + def get_window(self, *args, **kwargs) -> Tuple[int, int, int, int]: |
78 | 80 | """Returns the camera window.
|
79 | 81 |
|
80 | 82 | Returns:
|
81 | 83 | Tuple with left, top, width, and height set.
|
82 | 84 | """
|
83 | 85 | return self._window
|
84 | 86 |
|
85 |
| - def get_binning(self, *args, **kwargs) -> (int, int): |
| 87 | + def get_binning(self, *args, **kwargs) -> Tuple[int, int]: |
86 | 88 | """Returns the camera binning.
|
87 | 89 |
|
88 | 90 | Returns:
|
@@ -222,7 +224,7 @@ def _abort_exposure(self):
|
222 | 224 | self._driver.cancel_exposure()
|
223 | 225 | self._camera_status = ICamera.ExposureStatus.IDLE
|
224 | 226 |
|
225 |
| - def get_cooling_status(self, *args, **kwargs) -> (bool, float, float): |
| 227 | + def get_cooling_status(self, *args, **kwargs) -> Tuple[bool, float, float]: |
226 | 228 | """Returns the current status for the cooling.
|
227 | 229 |
|
228 | 230 | Returns:
|
|
0 commit comments