Changeset a00ee4c in sasview


Ignore:
Timestamp:
Jun 13, 2009 8:39:10 AM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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
Message:

prview: added d_max exploration dialog

Location:
prview/perspectives/pr
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • prview/perspectives/pr/inversion_panel.py

    r0d88a09 ra00ee4c  
    148148        self.alpha_estimate_ctl = None 
    149149        self.nterms_estimate_ctl = None 
     150         
     151        ## D_max distance explorator 
     152        self.distance_explorator_ctl = None 
    150153         
    151154        ## Data manager 
     
    307310            return self.plot_data.GetValue() 
    308311        else: 
    309             wx.Panel.__getattr__(self, name) 
     312            return wx.Panel.__getattribute__(self, name) 
     313            #return wx.Panel.__getattr__(self, name) 
    310314         
    311315    def _save_state(self, evt=None): 
     
    569573        self.dmax_ctl.Bind(wx.EVT_TEXT, self._on_pars_changed) 
    570574         
     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)            
    571579         
    572580         
     
    586594        sizer_params.Add(label_dmax, (iy,0), (1,1), wx.LEFT, 15) 
    587595        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) 
    588597 
    589598        boxsizer2.Add(sizer_params, 0) 
     
    712721        vbox.Add(sizer_button, (iy_vb,0), (1,1), wx.EXPAND|wx.BOTTOM|wx.TOP, 10) 
    713722 
     723        self.Bind(wx.EVT_TEXT_ENTER, self._on_invert) 
    714724 
    715725        self.SetSizer(vbox) 
     
    895905        return flag, alpha, dmax, nfunc, qmin, qmax, height, width 
    896906     
     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             
    897920    def _on_invert(self, evt): 
    898921        """ 
  • prview/perspectives/pr/pr_thread.py

    r1ebb590 ra00ee4c  
    44class CalcPr(CalcThread): 
    55    """ 
    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) 
    107    """ 
    118     
     
    4542class EstimatePr(CalcThread): 
    4643    """ 
    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) 
    5145    """ 
    5246     
     
    124118            if not self.error_func==None: 
    125119                self.error_func("EstimatePr2.compute: %s" % sys.exc_value) 
    126  
    127      
Note: See TracChangeset for help on using the changeset viewer.