Skip to content

Commit

Permalink
added list_binnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thusser committed Nov 30, 2023
1 parent 61a583b commit d0e8f0c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pyobs_fli/flicamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
import math
from datetime import datetime
from typing import Tuple, Any, Optional, Dict
from typing import Tuple, Any, Optional, Dict, List
import numpy as np

from pyobs.interfaces import ICamera, IWindow, IBinning, ICooling, IAbortable
Expand Down Expand Up @@ -116,6 +116,14 @@ async def set_binning(self, x: int, y: int, **kwargs: Any) -> None:
self._binning = (x, y)
log.info("Setting binning to %dx%d...", x, y)

async def list_binnings(self, **kwargs: Any) -> List[Tuple[int, int]]:
"""List available binnings.
Returns:
List of available binnings as (x, y) tuples.
"""
return [(1, 1), (2, 2), (3, 3)]

async def _expose(self, exposure_time: float, open_shutter: bool, abort_event: asyncio.Event) -> Image:
"""Actually do the exposure, should be implemented by derived classes.
Expand Down

0 comments on commit d0e8f0c

Please sign in to comment.