crunch.py: Extract unfolding frequency from unfold-protein curves
authorW. Trevor King <wking@tremily.us>
Fri, 31 May 2013 18:55:26 +0000 (14:55 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 31 May 2013 19:13:23 +0000 (15:13 -0400)
posts/Comparing_velocity_clamp_experiments/crunch.py

index 5b261c8c598cffa26eabfbf4e51b31e31de2a48f..a773099a7202cc008d22c7351210739c495d38aa 100755 (executable)
@@ -157,6 +157,7 @@ def load_pull(filename=pull_file, with_temperature=True):
         alpha_v = _numpy.array(f['unfold']['z'][...].flat, dtype=float)
         alpha_f = _numpy.array(
             f['unfold']['deflection'][...].flat, dtype=float)
+        frequency = float(f['config']['unfold']['frequency'][...])
         v = float(f['config']['unfold']['velocity'][...])
         if with_temperature:
             temperature = float(f['environment']['temperature'][...])
@@ -165,6 +166,7 @@ def load_pull(filename=pull_file, with_temperature=True):
     return {
         'alpha_v': alpha_v,
         'alpha_f': alpha_f,
+        'frequency': frequency,
         'velocity': v,
         'temperature': temperature,
         }