projects
/
calibcant.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99f3962
)
Fix real-T handling in T_acquire().
author
W. Trevor King
<wking@drexel.edu>
Thu, 28 Jul 2011 19:18:29 +0000
(15:18 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 28 Jul 2011 19:18:29 +0000
(15:18 -0400)
calibcant/T.py
patch
|
blob
|
history
diff --git
a/calibcant/T.py
b/calibcant/T.py
index 7ccfc83f864e7558e0edd4f3f75f523e4a2685e2..1bbe88bf1bf1da2106c0b0d3f45f178f10239c30 100644
(file)
--- 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().