Changeset bb1e07a in sasview


Ignore:
Timestamp:
Feb 3, 2009 2:26:49 PM (16 years ago)
Author:
Jae Cho <jhjcho@…>
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:
44999f3
Parents:
7a0fb4e
Message:

misbehavior of poydispersity button is Fixed

File:
1 edited

Legend:

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

    re5af88b rbb1e07a  
    3636        self.model=model 
    3737        #list of dispersion paramaters 
    38         self.disp_list=self.model.getDispParamList() 
     38        self.disp_list=[] 
     39        try: 
     40            self.disp_list=self.model.getDispParamList() 
     41        except: 
     42            pass  
    3943        self.manager = None 
    4044        self.parent  = parent 
     
    264268                return  
    265269            else: 
    266                 if self.data !=None: # allow to recognize data panel from model panel 
     270                if self.data !=None and self.model !=None: # allow to recognize data panel from model panel 
    267271                    self.cb1.SetValue(False) 
    268272                    self.select_all_param_helper() 
    269273                 
    270                 self.populate_disp_box() 
    271                 self.set_panel_dispers(self.disp_list) 
     274                    self.populate_disp_box() 
     275                    self.set_panel_dispers(self.disp_list) 
    272276                 
    273277        else: 
    274             if self.data !=None: 
     278            if self.data !=None and self.model!=None: 
    275279                if self.cb1.GetValue(): 
    276280                    self.select_all_param_helper() 
Note: See TracChangeset for help on using the changeset viewer.