From: devicerandom Date: Wed, 4 Mar 2009 19:32:14 +0000 (+0000) Subject: (pcluster.py) fixed typo X-Git-Tag: 0.9.0~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e7c0d8373175cc86bb86ab1dacf5175de2726e87;p=hooke.git (pcluster.py) fixed typo --- 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