From c13568b26998cd53db24835ae4450bc06292d85b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 28 Jul 2011 15:18:29 -0400 Subject: [PATCH] Fix real-T handling in T_acquire(). --- calibcant/T.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(). -- 2.26.2