Skip to content

Commit 5a6bb28

Browse files
authored
v1.1.0
version 1.1.0
2 parents 1a864d0 + df62031 commit 5a6bb28

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pyobs_flipro/fliprocamera.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling)
2121

2222
__module__ = "pyobs_flipro"
2323

24-
def __init__(self, **kwargs: Any):
24+
def __init__(self, setpoint: float, **kwargs: Any):
2525
"""Initializes a new FliProCamera.
2626
2727
Args:
2828
setpoint: Cooling temperature setpoint.
29-
keep_alive_ping: Interval in seconds to ping camera.
3029
"""
3130
BaseCamera.__init__(self, **kwargs)
3231
from .fliprodriver import FliProDriver, DeviceInfo # type: ignore
@@ -35,6 +34,7 @@ def __init__(self, **kwargs: Any):
3534
self._driver: Optional[FliProDriver] = None
3635
self._device: Optional[DeviceInfo] = None
3736
self._caps: Optional[DeviceCaps] = None
37+
self._temp_setpoint: Optional[float] = setpoint
3838

3939
# window and binning
4040
self._window = (0, 0, 0, 0)
@@ -62,6 +62,10 @@ async def open(self) -> None:
6262
# get caps
6363
self._caps = self._driver.get_capabilities()
6464

65+
# set cooling
66+
if self._temp_setpoint is not None:
67+
await self.set_cooling(True, self._temp_setpoint)
68+
6569
# get window and binning
6670
self._window = self._driver.get_image_area()
6771
self._binning = self._driver.get_binning()

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.4"
3+
version = "1.1.0"
44
description = "pyobs module for FLIPRO cameras"
55
authors = ["Tim-Oliver Husser <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)