Fix channel reference in AFMPiezo.move_to_pos_or_def.
authorW. Trevor King <wking@drexel.edu>
Mon, 23 Jan 2012 21:37:26 +0000 (16:37 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 23 Jan 2012 21:37:26 +0000 (16:37 -0500)
pypiezo/afm.py

index c3fc14b44a88ebe31b3e164bdef2ae0ee0934d9a..3857588e173c3971432d1aa130a2e67b69d2ea77 100644 (file)
@@ -193,7 +193,7 @@ class AFMPiezo (_base.Piezo):
             # default to the extreme value in the step direction
             if step > 0:
                 axis = self.axis_by_name(axis_name)
-                position = axis.channel.get_maxdata()
+                position = axis.axis_channel.get_maxdata()
             else:
                 position = 0
         elif deflection is None: