Ignore:
Timestamp:
Jun 2, 2010 10:17:18 AM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
6c79243
Parents:
a45622a
Message:

working on documentation theory view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • theoryview/perspectives/theory/model_panel.py

    r1a94c36 r74755ff  
    1818class ModelPanel(BasicPage): 
    1919    """ 
    20         FitPanel class contains fields allowing to display results when 
    21         fitting  a model and one data 
    22         @note: For Fit to be performed the user should check at least  
     20    FitPanel class contains fields allowing to display results when 
     21    fitting  a model and one data 
     22     
     23    :note: For Fit to be performed the user should check at least  
    2324        one parameter on fit Panel window. 
    2425    """ 
     
    3233        BasicPage.__init__(self, parent, page_info , model_list_box) 
    3334        """  
    34             Initialization of the Panel 
     35        Initialization of the Panel 
    3536        """ 
    3637        self._fill_model_sizer( self.sizer1)   
     
    4849    def _on_display_description(self, event): 
    4950        """ 
    50             Show or Hide description 
    51             @param event: wx.EVT_RADIOBUTTON 
     51        Show or Hide description 
     52         
     53        :param event: wx.EVT_RADIOBUTTON 
     54         
    5255        """ 
    5356        self._on_display_description_helper() 
     
    5861    def _on_display_description_helper(self): 
    5962        """ 
    60             Show or Hide description 
    61             @param event: wx.EVT_RADIOBUTTON 
     63        Show or Hide description 
     64         
     65        :param event: wx.EVT_RADIOBUTTON 
     66         
    6267        """ 
    6368        ## Show description 
     
    7984    def _fill_range_sizer(self): 
    8085        """ 
    81             Fill the sizer containing the plotting range 
    82             add  access to npts 
     86        Fill the sizer containing the plotting range 
     87        add  access to npts 
     88         
    8389        """ 
    8490        ##The following 3 lines are for Mac. Let JHC know before modifying.. 
     
    100106    def _on_select_model(self, event):  
    101107        """ 
    102              call back for model selection 
     108        call back for model selection 
     109         
    103110        """     
    104111        self._on_select_model_helper()  
     
    110117    def _fill_model_sizer(self, sizer): 
    111118        """ 
    112             fill sizer containing model info 
     119        fill sizer containing model info 
     120         
    113121        """ 
    114122        ##The following 3 lines are for Mac. Let JHC know before modifying.. 
     
    129137    def _set_sizer_dispersion(self, dispersity): 
    130138        """ 
    131             draw sizer with gaussian, log or schulz dispersity parameters 
     139        draw sizer with gaussian, log or schulz dispersity parameters 
     140         
    132141        """ 
    133142        self.fittable_param=[] 
     
    308317    def _onModel2D(self, event): 
    309318        """ 
    310          call manager to plot model in 2D 
     319        call manager to plot model in 2D 
     320         
    311321        """ 
    312322        # If the 2D display is not currently enabled, plot the model in 2D  
     
    356366    def reset_page(self, state): 
    357367        """ 
    358             reset the state 
     368        reset the state 
     369         
    359370        """ 
    360371        self.reset_page_helper(state) 
     
    363374    def select_model(self, model): 
    364375        """ 
    365             Select a new model 
    366             @param model: model object  
     376        Select a new model 
     377         
     378        :param model: model object  
     379         
    367380        """ 
    368381        self.model = model 
     
    390403    def set_model_description(self,description,sizer): 
    391404        """ 
    392             fill a sizer with description 
    393             @param description: of type string 
    394             @param sizer: wx.BoxSizer() 
     405        fill a sizer with description 
     406         
     407        :param description: of type string 
     408        :param sizer: wx.BoxSizer() 
     409         
    395410        """ 
    396411     
     
    442457    def on_button_clicked(self,event): 
    443458        """ 
    444         #On 'More details' button 
     459        On 'More details' button 
    445460        """ 
    446461        from help_panel import  HelpWindow 
     
    459474           wx.PostEvent(self.parent, StatusEvent(status = msg )) 
    460475                      
    461              
    462              
    463476    def set_range(self, qmin_x, qmax_x, npts): 
    464477        """ 
    465             Set the range for the plotted models 
    466             @param qmin: minimum Q 
    467             @param qmax: maximum Q 
    468             @param npts: number of Q bins 
     478        Set the range for the plotted models 
     479         
     480        :param qmin: minimum Q 
     481        :param qmax: maximum Q 
     482        :param npts: number of Q bins 
     483         
    469484        """ 
    470485        # Set the data members 
     
    472487        self.qmax_x = qmax_x 
    473488        self.num_points = npts 
    474          
    475489        # Set the controls 
    476490        #For qmin and qmax, do not use format_number.(If do, qmin and max could be different from what is in the data.) 
    477         
    478491        self.qmin.SetValue(str(self.qmin_x)) 
    479492        self.qmax.SetValue(str(self.qmax_x)) 
    480493        self.npts.SetValue(format_number(self.num_points)) 
    481494         
    482          
    483495    def set_model_param_sizer(self, model): 
    484496        """ 
    485             Build the panel from the model content 
    486             @param model: the model selected in combo box for fitting purpose 
     497        Build the panel from the model content 
     498         
     499        :param model: the model selected in combo box for fitting purpose 
     500         
    487501        """ 
    488502        self.sizer3.Clear(True) 
Note: See TracChangeset for help on using the changeset viewer.