From f3a017f23e7f8e0ce5bf875b5ab27ff69876c5a3 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 24 May 2013 17:26:08 -0400 Subject: [PATCH] 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. --- unfold_protein/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.', -- 2.26.2