From 1b63acbe50d853bc09a1da9ef832db7c49e54da3 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Fri, 24 Apr 2026 09:15:28 +0200 Subject: [PATCH] frappy_psi.attocube: cosmetic fixes Change-Id: I0211fed9b8cf7993bd0fed0a25486e7339dafdc5 --- frappy_psi/attocube.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/frappy_psi/attocube.py b/frappy_psi/attocube.py index 18de657d..6efd6462 100644 --- a/frappy_psi/attocube.py +++ b/frappy_psi/attocube.py @@ -53,6 +53,7 @@ class IO(Module): def configureAQuadBIn(self, axisNo, enable, resolution): """Enables and configures the A-Quad-B (quadrature) input for the target position. + Parameters axisNo Axis number (0 ... 2) enable Enable (1) or disable (0) A-Quad-B input @@ -199,7 +200,9 @@ class IO(Module): return self._hw.getFrequency(axisNo) def getPosition(self, axisNo): - """Retrieves the current actuator position. For linear type actuators the position unit is m; for goniometers and rotators it is degree. + """Retrieves the current actuator position. + + For linear type actuators the position unit is m; for goniometers and rotators it is degree. Parameters axisNo Axis number (0 ... 2) @@ -210,7 +213,10 @@ class IO(Module): return self._hw.getPosition(axisNo) def measureCapacitance(self, axisNo): - """Performs a measurement of the capacitance of the piezo motor and returns the result. If no motor is connected, the result will be 0. The function doesn't return before the measurement is complete; this will take a few seconds of time. + """Performs a measurement of the capacitance of the piezo motor and returns the result. + + If no motor is connected, the result will be 0. + The function doesn't return before the measurement is complete; this will take a few seconds of time. Parameters axisNo Axis number (0 ... 2) @@ -294,7 +300,9 @@ class IO(Module): return self._hw.setFrequency(axisNo, frequency) def setTargetPosition(self, axisNo, target): - """Sets the target position for automatic motion, see ANC_startAutoMove. For linear type actuators the position unit is m, for goniometers and rotators it is degree. + """Sets the target position for automatic motion, see ANC_startAutoMove. + + For linear type actuators the position unit is m, for goniometers and rotators it is degree. Parameters axisNo Axis number (0 ... 2) @@ -374,7 +382,7 @@ class Axis(HasIO, Drivable): step_mode = Parameter('step mode (soft closed loop)', BoolType(), default=False, readonly=False, group='step_mode') timeout = Parameter('timeout after no progress detected', FloatRange(0), - default=1, readonly=False, group='step_mode') + default=1, readonly=False, group='step_mode') steps_fwd = Parameter('forward steps / main unit', FloatRange(0), unit='$/s', default=0, readonly=False, group='step_mode') steps_bwd = Parameter('backward steps / main unit', FloatRange(0, unit='$/s'),