From ccaf6853a58057947d1be258b814fc9db3e0371b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 23 Jan 2012 16:37:26 -0500 Subject: [PATCH] Fix channel reference in AFMPiezo.move_to_pos_or_def. --- pypiezo/afm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2