From e7c0d8373175cc86bb86ab1dacf5175de2726e87 Mon Sep 17 00:00:00 2001 From: devicerandom Date: Wed, 4 Mar 2009 19:32:14 +0000 Subject: [PATCH] (pcluster.py) fixed typo --- hooke.py | 20 +++++++++++--------- pcluster.py | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/hooke.py b/hooke.py index eb4ba66..3a90baa 100755 --- 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 diff --git a/pcluster.py b/pcluster.py index 12a4082..44849b1 100644 --- a/pcluster.py +++ b/pcluster.py @@ -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 -- 2.26.2