Fix real-T handling in T_acquire().
authorW. Trevor King <wking@drexel.edu>
Thu, 28 Jul 2011 19:18:29 +0000 (15:18 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 28 Jul 2011 19:18:29 +0000 (15:18 -0400)
calibcant/T.py

index 7ccfc83f864e7558e0edd4f3f75f523e4a2685e2..1bbe88bf1bf1da2106c0b0d3f45f178f10239c30 100644 (file)
@@ -19,9 +19,10 @@ def T_acquire(get_T=None):
         T = get_T()
     else:
         T = None
-    if not T:
+    if T is None:
         _LOG.info('fake temperature %g' % _base_config['temperature'])
-        return _base_config['temperature']
+        T = _base_config['temperature']
+    return T
 
 def T(get_T, temperature_config, filename, group='/'):
     """Wrapper around T_acquire(), T_analyze(), T_save().