|
2 | 2 | import logging
|
3 | 3 | import math
|
4 | 4 | from datetime import datetime
|
5 |
| -import time |
6 | 5 | from typing import Tuple, Any, Optional, Dict
|
7 | 6 | import numpy as np
|
8 | 7 |
|
9 |
| -from pyobs.interfaces import ICamera, IWindow, IBinning, ICooling |
| 8 | +from pyobs.interfaces import ICamera, IWindow, IBinning, ICooling, IAbortable |
10 | 9 | from pyobs.modules.camera.basecamera import BaseCamera
|
11 | 10 | from pyobs.images import Image
|
12 | 11 | from pyobs.utils.enums import ExposureStatus
|
|
15 | 14 | log = logging.getLogger(__name__)
|
16 | 15 |
|
17 | 16 |
|
18 |
| -class FliCamera(BaseCamera, ICamera, IWindow, IBinning, ICooling): |
| 17 | +class FliCamera(BaseCamera, ICamera, IWindow, IBinning, ICooling, IAbortable): |
19 | 18 | """A pyobs module for FLI cameras."""
|
20 | 19 |
|
21 | 20 | __module__ = "pyobs_fli"
|
@@ -273,7 +272,7 @@ async def _abort_exposure(self) -> None:
|
273 | 272 | raise ValueError("No camera driver.")
|
274 | 273 | self._driver.cancel_exposure()
|
275 | 274 |
|
276 |
| - async def get_cooling_status(self, **kwargs: Any) -> Tuple[bool, float, float]: |
| 275 | + async def get_cooling(self, **kwargs: Any) -> Tuple[bool, float, float]: |
277 | 276 | """Returns the current status for the cooling.
|
278 | 277 |
|
279 | 278 | Returns:
|
|
0 commit comments