config: Use native Python types for default unfolding velocities
authorW. Trevor King <wking@tremily.us>
Fri, 24 May 2013 21:26:08 +0000 (17:26 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 24 May 2013 21:26:08 +0000 (17:26 -0400)
This avoids the need for funkyness when saving the configuration with
h5config's YAML storage backend.

unfold_protein/config.py

index e01cbea676b575b6356bb13c37163d1d8c7b3c01..66fc91b0a5e5dd36f620df49650e9b3e7f6c469f 100644 (file)
@@ -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.',