From 075555c4fd35d54dc7c78d658dd1d6109023fcd8 Mon Sep 17 00:00:00 2001 From: Iva Laginja Date: Thu, 16 May 2024 15:34:23 +0200 Subject: [PATCH] Fix flake8 errors --- .../thorlabs_cube_motor_kinesis.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/catkit2/services/thorlabs_cube_motor_kinesis/thorlabs_cube_motor_kinesis.py b/catkit2/services/thorlabs_cube_motor_kinesis/thorlabs_cube_motor_kinesis.py index 25aefbe8d..5413f6467 100644 --- a/catkit2/services/thorlabs_cube_motor_kinesis/thorlabs_cube_motor_kinesis.py +++ b/catkit2/services/thorlabs_cube_motor_kinesis/thorlabs_cube_motor_kinesis.py @@ -123,7 +123,7 @@ def open(self): # Submit motor starting position to current_position data stream self.get_current_position() - + self.make_command('home', self.home) def main(self): @@ -153,9 +153,9 @@ def set_current_position(self, position): new_pos_real = c_double(position) # in real units new_pos_dev = c_int() self.lib.CC_GetDeviceUnitFromRealValue(self.serial_number, - new_pos_real, - byref(new_pos_dev), - 0) + new_pos_real, + byref(new_pos_dev), + 0) self.lib.CC_MoveToPosition(self.serial_number, new_pos_dev) else: self.log.warning('Motor not moving since commanded position is outside of configured range.')