Skip to content

Commit f31ae99

Browse files
authored
v1.0.3
version 1.0.3
2 parents ef32815 + 5deb3d1 commit f31ae99

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyobs_zaber/zabermodeselector.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ async def check_position(self) -> float:
8282
"""
8383
async with Connection.open_serial_port_async(self.port) as connection:
8484
await connection.enable_alerts_async()
85-
device = (connection.detect_devices_async())[0]
85+
device = (await connection.detect_devices_async())[0]
8686
axis = device.get_axis(1)
87-
return await axis.get_position(unit=self.length_unit)
87+
return await axis.get_position_async(unit=self.length_unit)
8888

8989
async def move_to(self, position) -> None:
9090
"""
9191
Move Zaber motor to a given position.
9292
Args:
9393
position: value to which the motor moves
9494
"""
95-
async with Connection.open_serial_port(self.port) as connection:
95+
async with Connection.open_serial_port_async(self.port) as connection:
9696
await connection.enable_alerts_async()
97-
device = await connection.detect_devices_async()[0]
97+
device = (await connection.detect_devices_async())[0]
9898
axis = device.get_axis(1)
9999
await axis.move_absolute_async(
100100
position,

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-zaber"
3-
version = "1.0.2"
3+
version = "1.0.3"
44
description = "pyobs model for Zaber motors"
55
authors = ["Leon Meerwart <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)