def __cake_rng(self): """Multiring cake method""" exp = wx.GetApp().ws det = exp.detector action = {'exec': self.__makeMRB, 'args': (), 'kwargs': dict()} logwin = logWindow(self, wx.NewId(), action, 'Multiring Binning') logwin.ShowModal() # ==================== cCan = cakeDisplay(self, wx.NewId(), prOpts.CAKE_RNG, self.mrb) return
def OnRun(self, evt): """Callback for run""" # # Fill in spot options from the form # exp = wx.GetApp().ws opts = exp.spotOpts # opts.thresh = int(self.thresh_txt.GetValue()) opts.minpx = int(self.minpx_txt.GetValue()) # action = {'exec': self._run_spots, 'args': (), 'kwargs': dict()} logwin = logWindow(self, wx.NewId(), action, 'Finding Spots') logwin.ShowModal() self.updateFromExp() return
def __cake_rng(self): """Multiring cake method""" exp = wx.GetApp().ws det = exp.detector action = { 'exec' : self.__makeMRB, 'args' : (), 'kwargs': dict() } logwin = logWindow(self, wx.NewId(), action, 'Multiring Binning') logwin.ShowModal() # ==================== cCan = cakeDisplay(self, wx.NewId(), prOpts.CAKE_RNG, self.mrb) return
def __cake_img(self): """Execute rebinning for IMG case """ exp = wx.GetApp().ws det = exp.detector action = { 'exec' : self.__makeImgInfo, 'args' : (), 'kwargs': dict() } logwin = logWindow(self, wx.NewId(), action, 'Standard Polar Rebinning') logwin.ShowModal() return # # ============================== # Show rebin output on new window # ============================== # # Now draw # self.axes = self.figure.gca() self.axes.set_aspect('equal') intensity = self.img_info['intensity'] self.axes.images = [] # show new image self.axes.imshow(intensity, origin='upper', interpolation='nearest', cmap=self.cmPanel.cmap, vmin=self.cmPanel.cmin_val, vmax=self.cmPanel.cmax_val, aspect='auto') #self.axes.set_aspect('equal') self.axes.set_autoscale_on(False) self.canvas.draw() # pass
def __cake_img(self): """Execute rebinning for IMG case """ exp = wx.GetApp().ws det = exp.detector action = {'exec': self.__makeImgInfo, 'args': (), 'kwargs': dict()} logwin = logWindow(self, wx.NewId(), action, 'Standard Polar Rebinning') logwin.ShowModal() # # ============================== # Show rebin output on new window # ============================== # # Now draw # cCan = cakeDisplay(self, wx.NewId(), prOpts.CAKE_IMG, self.img_info) # pass
def OnRun(self, evt): """Callback for run""" # # Fill in spot options from the form # exp = wx.GetApp().ws opts = exp.spotOpts # opts.thresh = int(self.thresh_txt.GetValue()) opts.minpx = int(self.minpx_txt.GetValue()) # action = { 'exec' : self._run_spots, 'args' : (), 'kwargs': dict() } logwin = logWindow(self, wx.NewId(), action, 'Finding Spots') logwin.ShowModal() self.updateFromExp() return
def __cake_img(self): """Execute rebinning for IMG case """ exp = wx.GetApp().ws det = exp.detector action = { 'exec' : self.__makeImgInfo, 'args' : (), 'kwargs': dict() } logwin = logWindow(self, wx.NewId(), action, 'Standard Polar Rebinning') logwin.ShowModal() # # ============================== # Show rebin output on new window # ============================== # # Now draw # cCan = cakeDisplay(self, wx.NewId(), prOpts.CAKE_IMG, self.img_info) # pass
def OnRunFit(self, evt): """Callback for runFit_but""" # # Get workspace. # exp = wx.GetApp().ws try: action = { 'exec': exp.calibrate, 'args': (), 'kwargs': dict() } logwin = logWindow(self, wx.NewId(), action, 'Fitting Log') logwin.ShowModal() except Exception as e: wx.MessageBox(str(e)) pass self.Refresh() self.updateFromExp() # return