Changeset d63ef2f in sasview for sansview/perspectives


Ignore:
Timestamp:
Feb 17, 2009 5:33:00 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:
7ffe36b
Parents:
9e27de9
Message:

Fixed bugs in ordering of errors after simfitting

File:
1 edited

Legend:

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

    r8f274b11 rd63ef2f  
    541541        else: 
    542542            i=0 
     543            j=0 
    543544            #print  "fitpage: list param  model",list 
    544545            #for item in self.param_toFit: 
    545             #    print "fitpage: list display",item[0].GetLabelText() 
     546            #print "fitpage: list display",item[0].GetLabelText() 
    546547            for item in self.param_toFit: 
    547548                if( out != None ) and len(out)<=len(self.param_toFit)and i < len(out): 
    548549                    #item[1].SetValue(format_number(out[i])) 
    549550                    item[1].SetValue(format_number(self.model.getParam(item[0].GetLabelText()))) 
    550                     item[1].Refresh()  
    551                 if (cov !=None)and len(cov)<=len(self.param_toFit)and i < len(cov): 
     551                    item[1].Refresh() 
     552                if(cov !=None)and len(cov)<=len(self.param_toFit)and i < len(cov): 
    552553                    self.text2_3.Show()  
    553554                    item[2].Show() 
    554555                    item[3].Clear() 
    555                     item[3].SetValue(format_number(cov[i])) 
     556                    for j in range(len(out)): 
     557                        if out[j]==self.model.getParam(item[0].GetLabelText()):#.SetValue(format_number(self.model.getParam(item[0].GetLabelText()))): 
     558                            #print "jjj", j,item[1],item[1].SetValue(format_number(self.model.getParam(item[0].GetLabelText()))) 
     559                            break 
     560                    item[3].SetValue(format_number(cov[j])) 
    556561                    item[3].Show()    
    557562                i+=1 
Note: See TracChangeset for help on using the changeset viewer.