Changeset 5b53a5c in sasview


Ignore:
Timestamp:
Jul 29, 2009 3:16:32 PM (15 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:
5af5183
Parents:
e72bd95
Message:

fixed a bug when choosing a new model from control panel

File:
1 edited

Legend:

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

    rf20767b r5b53a5c  
    11211121        iy+=1 
    11221122        sizer.Add((10,10),(iy,ix),(1,1), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
    1123          
     1123        print self.model.dispersion 
    11241124        # type can be either Guassian or Array 
    1125         type= self.model.dispersion.values()[1]["type"] 
    1126         
     1125        if len(self.model.dispersion.values())>0: 
     1126            type= self.model.dispersion.values()[0]["type"] 
     1127        else: 
     1128            type = "Gaussian" 
     1129       
    11271130        #For Gaussian only 
    11281131        if type.lower() != "array": 
Note: See TracChangeset for help on using the changeset viewer.