def __on_smooth(self, _event):
     dlg = wx.BusyInfo('Please wait...')
     func = self.choiceFunc.GetStringSelection()
     ratio = self.slideRatio.GetValue()
     self.smoothed = smooth_spectrum(self.spectrum, func, ratio)
     self.__draw_plot(self.smoothed)
     self.buttonOk.Enable()
     dlg.Destroy()
Example #2
0
 def __on_smooth(self, _event):
     dlg = wx.BusyInfo('Please wait...')
     func = self.choiceFunc.GetStringSelection()
     ratio = self.slideRatio.GetValue()
     self.smoothed = smooth_spectrum(self.spectrum, func, ratio)
     self.__draw_plot(self.smoothed)
     self.buttonOk.Enable()
     dlg.Destroy()
Example #3
0
 def __plot_smooth(self):
     data = smooth_spectrum(self.data, self.settings.smoothFunc,
                            self.settings.smoothRatio)
     self.extent = Extent(data)
     return self.__plot_all(data)
Example #4
0
 def __plot_smooth(self):
     data = smooth_spectrum(self.data,
                            self.settings.smoothFunc,
                            self.settings.smoothRatio)
     self.extent = Extent(data)
     return self.__plot(data)