From 3747a25f2b6b4363824872137f5e9dfcc689e33c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 13 Jan 2012 13:05:19 -0500 Subject: [PATCH] Fix get -> get_temperature typo in AFM.get_temperature. --- pyafm/afm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyafm/afm.py b/pyafm/afm.py index 61c44f1..ada5b13 100644 --- a/pyafm/afm.py +++ b/pyafm/afm.py @@ -59,7 +59,7 @@ class AFM (object): Return the sample temperature in Kelvin or `None` if such a measurement is not possible. """ - if hasattr(self.temperature, 'get'): + if hasattr(self.temperature, 'get_temperature'): return self.temperature.get_temperature() def move_just_onto_surface(self, depth=-50e-9, setpoint=2, far=200): -- 2.26.2