if name == 'vDeflection':
assert unit == 'm', segment.info['columns'][i]
segment.info['columns'][i] = join_data_label('deflection', 'm')
+ # Invert because deflection voltage increases as the
+ # tip moves away from the surface, but it makes more
+ # sense to me to have it increase as it moves toward
+ # the surface (positive tension on the protein chain).
+ segment[:,i] *= -1
elif name == 'height':
assert unit == 'm', segment.info['columns'][i]
segment.info['columns'][i] = join_data_label('z piezo', 'm')