From 0ff446f7a3a29c6aadda7bb5fc026229ffd06c36 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 25 Jan 2012 10:33:43 -0500 Subject: [PATCH] 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. --- unfold.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.26.2