Add AFM.move_toward_surface() and fix AFM.move_away_from_surface().
authorW. Trevor King <wking@drexel.edu>
Thu, 15 Mar 2012 22:29:15 +0000 (18:29 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 15 Mar 2012 22:29:15 +0000 (18:29 -0400)
commit569cb0bf9439c9607e6f1488390dad7da81e27dc
treeb7af9732614428114c2548b87b0c0f2d9fe8506f
parent326e0d48d9b058dd22360c49bc2a8ad2f0897ef1
Add AFM.move_toward_surface() and fix AFM.move_away_from_surface().

In everything else we do, numbers increase as you approach the
surface.  There's no need to invert that convention here, so we now
have `AFM.move_toward_surface()` which can be used for moving in both
directions.  `AFM.move_away_from_surface()` remains, because "Ahh!
What's going on!  Quick, save the tip!" moments will happen, and then
it's nice to have a method that gets you clear without you having to
pick how far away you'd like to go.
pyafm/afm.py