From: W. Trevor King Date: Wed, 25 Jan 2012 15:33:43 +0000 (-0500) Subject: Update unfold.py config to show temp in Kelvin. X-Git-Tag: v0.2~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0ff446f7a3a29c6aadda7bb5fc026229ffd06c36;p=unfold-protein.git Update unfold.py config to show temp in Kelvin. 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. --- diff --git a/unfold.py b/unfold.py index b1ca6f8..ba84404 100755 --- 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()