From: W. Trevor King Date: Fri, 24 May 2013 21:26:08 +0000 (-0400) Subject: config: Use native Python types for default unfolding velocities X-Git-Tag: v0.2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f3a017f23e7f8e0ce5bf875b5ab27ff69876c5a3;p=unfold-protein.git config: Use native Python types for default unfolding velocities This avoids the need for funkyness when saving the configuration with h5config's YAML storage backend. --- diff --git a/unfold_protein/config.py b/unfold_protein/config.py index e01cbea..66fc91b 100644 --- a/unfold_protein/config.py +++ b/unfold_protein/config.py @@ -116,8 +116,8 @@ class VelocityScanConfig (_config.Config): _config.FloatListSetting( name='unfolding velocities', help='Unfolding velocities in meters per second.', - default=_numpy.exp(_numpy.linspace( - _numpy.log(20e-9), _numpy.log(2e-6), 10))), + default=list(float(x) for x in _numpy.exp(_numpy.linspace( + _numpy.log(20e-9), _numpy.log(2e-6), 10)))), _config.IntegerSetting( name='num loops', help='Number of loops through the scanned velocities.',