From 3fcb55d05e350fc29620d25505a41fe0b5c89a1d Mon Sep 17 00:00:00 2001 From: devicerandom Date: Wed, 4 Mar 2009 14:08:34 +0000 Subject: [PATCH] (pcluster.py) fixed stupid crash --- hooke.py | 2 +- pcluster.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooke.py b/hooke.py index fe02f25..eb4ba66 100755 --- a/hooke.py +++ b/hooke.py @@ -325,7 +325,7 @@ class MainWindow(wx.Frame): self.click_flags_functions={'measure_points':[False, 'MeasurePoints']} - #Custom events from CLI --> GUI functions! + #Binding of custom events from CLI --> GUI functions! #FIXME: Should use the self.Bind() syntax EVT_PLOT(self, self.PlotCurve) EVT_PLOT_CONTACT(self, self.PlotContact) diff --git a/pcluster.py b/pcluster.py index 2766a18..de1d932 100644 --- a/pcluster.py +++ b/pcluster.py @@ -97,7 +97,7 @@ class pclusterCommands: fit_points=int(self.config['auto_fit_points']) # number of points to fit before the peak maximum <50> T=self.config['temperature'] #temperature of the system in kelvins. By default it is 293 K. <301.0> - cindex=self.find_contact_point(itplot) #Automatically find contact point <158, libhooke.ClickedPoint> + cindex=self.find_contact_point(itplot[0]) #Automatically find contact point <158, libhooke.ClickedPoint> contact_point=self._clickize(itplot[0].vectors[1][0], itplot[0].vectors[1][1], cindex) self.basepoints=[] base_index_0=peak_location[-1]+fit_interval_nm(peak_location[-1], itplot[0], self.config['auto_right_baseline'],False) -- 2.26.2