Fix get -> get_temperature typo in AFM.get_temperature.
authorW. Trevor King <wking@drexel.edu>
Fri, 13 Jan 2012 18:05:19 +0000 (13:05 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 13 Jan 2012 18:05:19 +0000 (13:05 -0500)
pyafm/afm.py

index 61c44f112df42595127056e46af931c1a795bb23..ada5b130b21c22addbb88e6e9f9996d9b04e8a03 100644 (file)
@@ -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):