Skip to content

Commit 1a864d0

Browse files
authored
v1.0.4
version 1.0.4
2 parents ca4c4d1 + 02aafe1 commit 1a864d0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

pyobs_flipro/fliprocamera.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33
import math
44
from datetime import datetime
5-
from typing import Tuple, Any, Optional, Dict
5+
from typing import Tuple, Any, Optional, Dict, List
66
import numpy as np
77

88
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
238238
self._window = (left, top, width, height)
239239
log.info("Setting window to %dx%d at %d,%d...", width, height, left, top)
240240

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+
241249
async def set_binning(self, x: int, y: int, **kwargs: Any) -> None:
242250
"""Set the camera binning.
243251

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pyobs-flipro"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
description = "pyobs module for FLIPRO cameras"
55
authors = ["Tim-Oliver Husser <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)