Changeset 4fa5f3b in sasview
- Timestamp:
- Jun 13, 2011 2:58:24 PM (13 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r6accb37 r4fa5f3b 1840 1840 i = 0 1841 1841 #Set the panel when fit result are list 1842 for i tem 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: 1844 1844 ## 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() 1847 1847 1848 1848 for ind in range(len(out)): 1849 1849 1850 if item[1] == p_name[ind]:1850 if self.param_toFit[idx][1] == p_name[ind]: 1851 1851 break 1852 1852 if len(out)<=len(self.param_toFit) and out[ind] !=None: 1853 1853 val_out = format_number(out[ind], True) 1854 1854 if numpy.isfinite(val_out): 1855 item[2].SetValue(val_out)1855 self.param_toFit[idx][2].SetValue(val_out) 1856 1856 1857 1857 … … 1871 1871 if numpy.isfinite(float(cov[ind])): 1872 1872 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) 1876 1876 1877 1877 has_error = True
Note: See TracChangeset
for help on using the changeset viewer.