From d0e8f0c737ae06e7e4d6e1c1f5e451808bb0f61d Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Thu, 30 Nov 2023 13:26:07 +0100 Subject: [PATCH 1/2] added list_binnings --- pyobs_fli/flicamera.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyobs_fli/flicamera.py b/pyobs_fli/flicamera.py index b668e84..781680f 100644 --- a/pyobs_fli/flicamera.py +++ b/pyobs_fli/flicamera.py @@ -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 @@ -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. From 03bc14ef4343b5ef1a24d5e9f2c93397996229d3 Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Thu, 30 Nov 2023 13:26:18 +0100 Subject: [PATCH 2/2] v1.1.2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 634b8c7..47caa40 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pyobs-fli" -version = "1.1.1" +version = "1.1.2" description = "pyobs module for FLI cameras" authors = ["Tim-Oliver Husser "] license = "MIT"