- Timestamp:
- Jun 13, 2009 10:39:10 AM (16 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 164c7d0
- Parents:
- 3595309d
- Location:
- prview/perspectives/pr
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/perspectives/pr/inversion_panel.py
r0d88a09 ra00ee4c 148 148 self.alpha_estimate_ctl = None 149 149 self.nterms_estimate_ctl = None 150 151 ## D_max distance explorator 152 self.distance_explorator_ctl = None 150 153 151 154 ## Data manager … … 307 310 return self.plot_data.GetValue() 308 311 else: 309 wx.Panel.__getattr__(self, name) 312 return wx.Panel.__getattribute__(self, name) 313 #return wx.Panel.__getattr__(self, name) 310 314 311 315 def _save_state(self, evt=None): … … 569 573 self.dmax_ctl.Bind(wx.EVT_TEXT, self._on_pars_changed) 570 574 575 # Distance explorator 576 id = wx.NewId() 577 self.distance_explorator_ctl = wx.Button(self, id, "Explore") 578 self.Bind(wx.EVT_BUTTON, self._on_explore, id = id) 571 579 572 580 … … 586 594 sizer_params.Add(label_dmax, (iy,0), (1,1), wx.LEFT, 15) 587 595 sizer_params.Add(self.dmax_ctl, (iy,1), (1,1), wx.RIGHT, 0) 596 sizer_params.Add(self.distance_explorator_ctl, (iy,2), (1,1), wx.LEFT, 15) 588 597 589 598 boxsizer2.Add(sizer_params, 0) … … 712 721 vbox.Add(sizer_button, (iy_vb,0), (1,1), wx.EXPAND|wx.BOTTOM|wx.TOP, 10) 713 722 723 self.Bind(wx.EVT_TEXT_ENTER, self._on_invert) 714 724 715 725 self.SetSizer(vbox) … … 895 905 return flag, alpha, dmax, nfunc, qmin, qmax, height, width 896 906 907 def _on_explore(self, evt): 908 """ 909 Invoke the d_max exploration dialog 910 """ 911 from explore_dialog import ExploreDialog 912 if self.manager._last_pr is not None: 913 pr = self.manager._create_plot_pr() 914 dialog = ExploreDialog(pr, 10, None, -1, "") 915 dialog.ShowModal() 916 else: 917 message = "No data to analyze. Please load a data set to proceed." 918 wx.PostEvent(self.manager.parent, StatusEvent(status=message)) 919 897 920 def _on_invert(self, evt): 898 921 """ -
prview/perspectives/pr/pr_thread.py
r1ebb590 ra00ee4c 4 4 class CalcPr(CalcThread): 5 5 """ 6 Compute 2D model 7 This calculation assumes a 2-fold symmetry of the model 8 where points are computed for one half of the detector 9 and I(qx, qy) = I(-qx, -qy) is assumed. 6 Compute P(r) 10 7 """ 11 8 … … 45 42 class EstimatePr(CalcThread): 46 43 """ 47 Compute 2D model 48 This calculation assumes a 2-fold symmetry of the model 49 where points are computed for one half of the detector 50 and I(qx, qy) = I(-qx, -qy) is assumed. 44 Estimate P(r) 51 45 """ 52 46 … … 124 118 if not self.error_func==None: 125 119 self.error_func("EstimatePr2.compute: %s" % sys.exc_value) 126 127
Note: See TracChangeset
for help on using the changeset viewer.