Changeset 1f57dfd in sasview


Ignore:
Timestamp:
Mar 26, 2009 5:01:28 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:
aed7c57
Parents:
1d2782d
Message:

working on simfitpage

File:
1 edited

Legend:

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

    r1d2782d r1f57dfd  
    356356            hide buttons related constraint  
    357357        """   
    358         for page  in  self.page_finder.iterkeys(): 
     358        for page in  self.page_finder.iterkeys(): 
    359359            self.page_finder[page].clear_model_param() 
    360360                
     
    545545                msg+= " to set constraint! " 
    546546                wx.PostEvent(self.parent.Parent, StatusEvent(status= msg )) 
    547                  
    548             if model  in self.constraint_dict.keys(): 
    549                 page = self.constraint_dict[model] 
    550                 if constraint == "": 
    551                     msg= " Constraint will be ignored!. missing value in textcrtl" 
    552                     msg+= " to set constraint! " 
    553                     wx.PostEvent(self.parent.Parent, StatusEvent(status= msg )) 
    554                     constraint = None 
    555                 
    556                 self.page_finder[page].set_model_param(param,constraint) 
     547            for page , value in self.constraint_dict.iteritems(): 
     548                if model == value: 
     549                    if constraint == "": 
     550                        msg= " Constraint will be ignored!. missing value in textcrtl" 
     551                        msg+= " to set constraint! " 
     552                        wx.PostEvent(self.parent.Parent, StatusEvent(status= msg )) 
     553                        constraint = None 
     554                    self.page_finder[page].set_model_param(param,constraint) 
     555                    break 
    557556         
    558557    
Note: See TracChangeset for help on using the changeset viewer.