Ignore:
Timestamp:
Aug 6, 2009 12:22:55 PM (15 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:
c9aa125
Parents:
1b001a7
Message:

rename gaussian method to allow more than one dispersion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/modelpage.py

    r6dc9ad8 r30d103a  
    116116     
    117117   
    118     def _set_sizer_gaussian(self): 
    119         """ 
    120             draw sizer with gaussian dispersity parameters 
     118    #def _set_sizer_gaussian(self): 
     119    def _set_sizer_dispersion(self, dispersity): 
     120        """ 
     121            draw sizer with gaussian, log or schulz dispersity parameters 
    121122        """ 
    122123        self.fittable_param=[] 
     
    134135        # Create the dispersion objects 
    135136        for item in self.model.dispersion.keys(): 
    136             disp_model =  GaussianDispersion() 
     137            #disp_model =  GaussianDispersion() 
     138            disp_model = dispersity() 
    137139            self._disp_obj_dict[item] = disp_model 
    138140            self.model.set_dispersion(item, disp_model) 
     
    297299            self._draw_model() 
    298300            self.model_view.Disable() 
     301            
    299302             
    300303            self.set_model_param_sizer(self.model) 
     
    304307                for item in self.orientation_params: 
    305308                    if item[2]!=None:       
     309     
    306310                        item[2].Enable() 
    307             if  self.disp_name == "ArrayDispersion":                 
     311            if  self.disp_name.lower() == "array":                 
    308312                self._set_sizer_arraydispersion()   
    309313            else: 
     
    437441        # Set the controls 
    438442        #For qmin and qmax, do not use format_number.(If do, qmin and max could be different from what is in the data.) 
    439         """ 
    440         self.qmin.SetValue(format_number(self.qmin_x)) 
    441         self.qmax.SetValue(format_number(self.qmax_x)) 
    442         self.npts.SetValue(format_number(self.num_points)) 
    443         """ 
     443        
    444444        self.qmin.SetValue(str(self.qmin_x)) 
    445445        self.qmax.SetValue(str(self.qmax_x)) 
Note: See TracChangeset for help on using the changeset viewer.