Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
version 1.1.2
  • Loading branch information
thusser authored Nov 30, 2023
2 parents 4892fdd + 03bc14e commit d03c5e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit d03c5e3

Please sign in to comment.