File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " pyobs-zaber"
3- version = " 1.0.2 "
3+ version = " 1.0.3 "
44description = " pyobs model for Zaber motors"
55authors = [
" Leon Meerwart <[email protected] >" ]
66license = " MIT"
You can’t perform that action at this time.
0 commit comments