From d31aab33e3a0c8434d38e96cc8444a3a723631fb Mon Sep 17 00:00:00 2001 From: devicerandom Date: Sat, 14 Jun 2008 00:02:13 +0000 Subject: [PATCH] JPK driver now consistent with hooke conventions, wlc and peaks now seem to work on JPK curves --- jpk.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jpk.py b/jpk.py index 2249d85..f7ba343 100644 --- a/jpk.py +++ b/jpk.py @@ -108,13 +108,15 @@ class jpkDriver(lhc.Driver): force_ext=force.ext() force_ret=force.ret() #reverse the return data, to make it coherent with hooke standard - height_ms_ret.reverse - force_ret.reverse + height_ms_ret.reverse() + force_ret.reverse() main_plot=lhc.PlotObject() main_plot.add_set(height_ms_ext,force_ext) main_plot.add_set(height_ms_ret,force_ret) + + if self.springconstant != 0: main_plot.units=['meters','force'] else: -- 2.26.2