step=step_bits, frequency=frequency, return_data=True)
data['setpoint'] = setpoint
# check the output
- if data['deflection'][-1] < setpoint_bits:
- _LOG.info('unfolding too far from the surface')
+ if data['deflection'].max() < setpoint_bits:
+ _LOG.info(('unfolding too far from the surface '
+ '(def {} < target {})').format(
+ data['deflection'].max(), setpoint_bits))
self.afm.piezo.jump(self.afm.axis_name, start_pos)
#if PYLAB_INTERACTIVE_VERBOSE == True:
# figure(BASE_FIG_NUM+1)