pos_array=[self.last_output[axis_name]]
for i in range(pre_move_steps):
self.jump(axis_name, piezo.last_output[axis_name])
- delection = self.read_deflection()
+ current_deflection = self.read_deflection()
if aquire_data:
def_array.append(current_deflection)
pos_array.append(self.last_output[axis_name])
self.jump(axis_name, jump_to)
current_deflection = self.read_deflection()
log_string = (
- 'current z piezo position %6d, current deflection %6d'
- % (current_deflection, self.last_output[axis_name]))
+ ('current z piezo position {:6d} (target {:6d}), '
+ 'current deflection {:6d} (target {:6d})').format(
+ self.last_output[axis_name], position,
+ current_deflection, deflection))
_LOG.debug(log_string)
if aquire_data:
def_array.append(current_deflection)