Skip to content

Commit 25d6a1f

Browse files
authored
v0.15.3
version 0.15.3
2 parents 0ba612f + 1e6a9fb commit 25d6a1f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

pyobs_aravis/araviscamera.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,20 @@ async def _capture(self) -> None:
112112
await asyncio.sleep(0.1)
113113
continue
114114

115+
# read frame
116+
while True:
117+
frame: npt.NDArray[float] = self._camera.pop_frame() # type: ignore
118+
if frame is None:
119+
await asyncio.sleep(0.01)
120+
else:
121+
break
122+
115123
# if time since last image is too short, wait a little
116124
if time.time() - last < self._interval:
117125
await asyncio.sleep(0.01)
118126
continue
119127

120-
# read frame
121-
frame: npt.NDArray[float] = self._camera.pop_frame() # type: ignore
128+
# save time
122129
last = time.time()
123130

124131
# process it

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-aravis"
3-
version = "0.15.2"
3+
version = "0.15.3"
44
description = "pyobs module for Aravis cameras"
55
authors = ["Tim-Oliver Husser <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)