(pcluster.py) fixed typo
authordevicerandom <devnull@localhost>
Wed, 4 Mar 2009 19:32:14 +0000 (19:32 +0000)
committerdevicerandom <devnull@localhost>
Wed, 4 Mar 2009 19:32:14 +0000 (19:32 +0000)
hooke.py
pcluster.py

index eb4ba66c013c6b7c093e2a51f5381c00f4d4ffa5..3a90baa85b853aa648345e0ec1dcea24e97014e2 100755 (executable)
--- a/hooke.py
+++ b/hooke.py
@@ -536,6 +536,7 @@ class MainWindow(wx.Frame):
         def PlotContact(self,event):
             '''
             plots the contact point
+            DEPRECATED!
             '''
             self.axes[0].hold(True)
             self.current_contact_index=event.contact_index
@@ -548,6 +549,15 @@ class MainWindow(wx.Frame):
             self._replot()
             self.clicked_points=[]
             
+        def OnMeasurePoints(self,event):
+            '''
+            trigger flags to measure N points
+            '''
+            self.click_flags_functions['measure_points'][0]=True
+            if 'num_of_points' in dir(event):
+                self.num_of_points=event.num_of_points
+            if 'set' in dir(event):    
+                self.measure_set=event.set            
         
         def ClickPoint0(self,event):
             self.current_plot_dest=0
@@ -568,15 +578,7 @@ class MainWindow(wx.Frame):
                 if value[0]:
                     eval('self.'+value[1]+'(event)')
                                       
-        def OnMeasurePoints(self,event):
-            '''
-            trigger flags to measure N points
-            '''
-            self.click_flags_functions['measure_points'][0]=True
-            if 'num_of_points' in dir(event):
-                self.num_of_points=event.num_of_points
-            if 'set' in dir(event):    
-                self.measure_set=event.set
+
      
         def MeasurePoints(self,event,current_set=1):
             dest=self.current_plot_dest
index 12a4082e3335dc8ddaae8479f2ceb5b74e582cc4..44849b16b00e083330c5534393fac04d1527430a 100644 (file)
@@ -142,7 +142,7 @@ class pclusterCommands:
             if len(params)==1: #if we did choose 1-value fit
                 p_leng=pl_value
                 c_leng=params[0]*(1.0e+9)
-                sigma_p_lengt=0
+                sigma_p_leng=0
                 sigma_c_leng=fit_errors[0]*(1.0e+9)
                 force = abs(y-avg)*(1.0e+12)
             else: #2-value fit