Fix old 'get_temp' -> 'get_pv' and 'get_ambient_temp' -> 'get_ambient_pv'
[pypid.git] / examples / temp_monitor.py
index 9c1369f60afcc5be3d3808735026ac55c22fc8d9..46638ccb1a42dd54d2b5d12a6cf9c6d1b2ac17ad 100755 (executable)
@@ -35,8 +35,8 @@ with open('temp_monitor.log', 'a') as f:
     while True:
         time.sleep(next_time - time.time())
         tstr = time.strftime('%Y-%m-%d %H:%M:%S')
-        temp = str(b.get_temp())
-        ambient = str(b.get_ambient_temp())
+        temp = str(b.get_pv())
+        ambient = str(b.get_ambient_pv())
         f.write('\t'.join([tstr, temp, ambient]) + '\n')
         f.flush()
         print('\t'.join([tstr, temp, ambient]))