From: W. Trevor King Date: Mon, 23 Jan 2012 21:37:26 +0000 (-0500) Subject: Fix channel reference in AFMPiezo.move_to_pos_or_def. X-Git-Tag: 0.6~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ccaf6853a58057947d1be258b814fc9db3e0371b;p=pypiezo.git Fix channel reference in AFMPiezo.move_to_pos_or_def. --- diff --git a/pypiezo/afm.py b/pypiezo/afm.py index c3fc14b..3857588 100644 --- a/pypiezo/afm.py +++ b/pypiezo/afm.py @@ -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: