Ignore:
Timestamp:
Jun 13, 2011 12:58:24 PM (13 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:
ce92ded
Parents:
6accb37
Message:

replaced item to self.param_toFit[idx] onsetValues

File:
1 edited

Legend:

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

    r6accb37 r4fa5f3b  
    18401840            i = 0 
    18411841            #Set the panel when fit result are list 
    1842             for item in self.param_toFit:      
    1843                 if len(item)>5 and item != None:      
     1842            for idx in range(len(self.param_toFit)):      
     1843                if len(self.param_toFit[idx])>5 and self.param_toFit[idx] != None:      
    18441844                    ## reset error value to initial state 
    1845                     item[3].Hide() 
    1846                     item[4].Hide() 
     1845                    self.param_toFit[idx][3].Hide() 
     1846                    self.param_toFit[idx][4].Hide() 
    18471847                     
    18481848                    for ind in range(len(out)): 
    18491849                         
    1850                         if item[1] == p_name[ind]: 
     1850                        if self.param_toFit[idx][1] == p_name[ind]: 
    18511851                            break         
    18521852                    if len(out)<=len(self.param_toFit) and out[ind] !=None:    
    18531853                        val_out = format_number(out[ind], True)  
    18541854                        if numpy.isfinite(val_out):                  
    1855                             item[2].SetValue(val_out) 
     1855                            self.param_toFit[idx][2].SetValue(val_out) 
    18561856 
    18571857 
     
    18711871                            if numpy.isfinite(float(cov[ind])): 
    18721872                                val_err = format_number(cov[ind], True) 
    1873                                 item[3].Show(True) 
    1874                                 item[4].SetValue(val_err) 
    1875                                 item[4].Show(True) 
     1873                                self.param_toFit[idx][3].Show(True) 
     1874                                self.param_toFit[idx][4].SetValue(val_err) 
     1875                                self.param_toFit[idx][4].Show(True) 
    18761876 
    18771877                                has_error = True 
Note: See TracChangeset for help on using the changeset viewer.