Changeset bb7d8a4 in sasview


Ignore:
Timestamp:
Mar 26, 2009 3:54:37 PM (16 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:
a911b48
Parents:
dfae8b3
Message:

simpage working on

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    rb28717b rbb7d8a4  
    450450                            param_name = item[0] 
    451451                            ## check if constraint 
    452                             if param_value !=None: 
     452                            if param_value !=None and param_name != None: 
    453453                                new_model.parameterset[ param_name].set( param_value ) 
    454454                 
  • sansview/perspectives/fitting/simfitpage.py

    r8bd4dc0 rbb7d8a4  
    9999            if event.GetId()==item[length-2].GetId(): 
    100100                sizer= item[length-1] 
     101                sizer.Clear(True) 
    101102                self.sizer_constraints.Remove(sizer) 
    102                 self.sizer_constraints.Layout() 
     103                #self.sizer_constraints.Layout() 
    103104                self.sizer2.Layout() 
    104105                self.SetScrollbars(20,20,200,100) 
     
    537538            param = item[1].GetString(item[1].GetCurrentSelection()) 
    538539            constraint = item[3].GetValue().lstrip().rstrip() 
     540            if param.lstrip().rstrip()=="": 
     541                param= None 
     542                msg= " Constraint will be ignored!. missing parameters in combobox" 
     543                msg+= " to set constraint! " 
     544                wx.PostEvent(self.parent.Parent, StatusEvent(status= msg )) 
     545                 
    539546            if model  in self.constraint_dict.keys(): 
    540547                page = self.constraint_dict[model] 
    541548                if constraint == "": 
     549                    msg= " Constraint will be ignored!. missing value in textcrtl" 
     550                    msg+= " to set constraint! " 
     551                    wx.PostEvent(self.parent.Parent, StatusEvent(status= msg )) 
    542552                    constraint = None 
    543553                
Note: See TracChangeset for help on using the changeset viewer.