LOG.setLevel(_logging.DEBUG)
h = _logging.StreamHandler()
-h.setLevel(_logging.WARN)
f = _logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
h.setFormatter(f)
LOG.addHandler(h)
cd = self.piezo.read_deflection()
for i in range(2*max(1, self.stepper.backlash)):
- LOG.debug('additional surface location attempt')
+ LOG.debug(
+ 'additional surface location attempt (stepping backwards)')
try:
pos = self.piezo.get_surface_position(
- axis_name=self.axis_name, max_deflection=target_def)
+ axis_name=self.axis_name, max_deflection=target_deflection)
return pos
except _SurfaceError, e:
LOG.info(e)