From: W. Trevor King Date: Thu, 28 Jul 2011 19:18:29 +0000 (-0400) Subject: Fix real-T handling in T_acquire(). X-Git-Tag: 0.7~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c13568b26998cd53db24835ae4450bc06292d85b;p=calibcant.git Fix real-T handling in T_acquire(). --- diff --git a/calibcant/T.py b/calibcant/T.py index 7ccfc83..1bbe88b 100644 --- a/calibcant/T.py +++ b/calibcant/T.py @@ -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().