|
2 | 2 | import logging |
3 | 3 | import math |
4 | 4 | from datetime import datetime |
5 | | -from typing import Tuple, Any, Optional, Dict |
| 5 | +from typing import Tuple, Any, Optional, Dict, List |
6 | 6 | import numpy as np |
7 | 7 |
|
8 | 8 | from pyobs.interfaces import ICamera, IWindow, IBinning, ICooling, IAbortable |
@@ -238,6 +238,14 @@ async def set_window(self, left: int, top: int, width: int, height: int, **kwarg |
238 | 238 | self._window = (left, top, width, height) |
239 | 239 | log.info("Setting window to %dx%d at %d,%d...", width, height, left, top) |
240 | 240 |
|
| 241 | + async def list_binnings(self, **kwargs: Any) -> List[Tuple[int, int]]: |
| 242 | + """List available binnings. |
| 243 | +
|
| 244 | + Returns: |
| 245 | + List of available binnings as (x, y) tuples. |
| 246 | + """ |
| 247 | + return [(1, 1), (2, 2), (3, 3), (4, 4)] |
| 248 | + |
241 | 249 | async def set_binning(self, x: int, y: int, **kwargs: Any) -> None: |
242 | 250 | """Set the camera binning. |
243 | 251 |
|
|
0 commit comments