Update unfold.py config to show temp in Kelvin.
authorW. Trevor King <wking@drexel.edu>
Wed, 25 Jan 2012 15:33:43 +0000 (10:33 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 25 Jan 2012 15:33:43 +0000 (10:33 -0500)
By default, `calibcant.config.TemperatureConfig` assumes you'll give
temperatures in Celsius, but in
`unfold_python.temperature.Temperature.get_temperature`, we convert
the backend temperature from Celsius to Kelvin.

unfold.py

index b1ca6f8340199647627a5fc75f0b6208872d8695..ba8440495517d7734dc2e26c15fc76bb4ad46e24 100755 (executable)
--- a/unfold.py
+++ b/unfold.py
@@ -23,6 +23,7 @@
 import os
 import os.path
 
+from calibcant.config import Kelvin as _Kelvin
 from unfold_protein import __version__ as version
 from unfold_protein.afm import get_afm
 from unfold_protein.unfolder import Unfolder
@@ -43,6 +44,7 @@ if __name__ == '__main__':
 
     unfold_config = _config.UnfoldCycleConfig()
     unfold_config['temperature'] = _config.TemperatureConfig()
+    unfold_config['temperature']['units'] = _Kelvin
     unfold_config['approach'] = _config.ApproachConfig()
     unfold_config['unfold'] = _config.UnfoldConfig()
     unfold_config['save'] = _config.SaveConfig()