(pcluster.py) fixed stupid crash
authordevicerandom <devnull@localhost>
Wed, 4 Mar 2009 14:08:34 +0000 (14:08 +0000)
committerdevicerandom <devnull@localhost>
Wed, 4 Mar 2009 14:08:34 +0000 (14:08 +0000)
hooke.py
pcluster.py

index fe02f25b54225675857fb3e79b2156b8b9e0e9a4..eb4ba66c013c6b7c093e2a51f5381c00f4d4ffa5 100755 (executable)
--- 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)
index 2766a1879e18384b5f43afa8329add777244e056..de1d93291b286567a740226972251378536c2989 100644 (file)
@@ -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)