- Timestamp:
- Apr 14, 2010 6:44:26 PM (15 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:
- 5dc4236
- Parents:
- f1b0f70
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r19403da r2012eae 1035 1035 # set mask 1036 1036 is_modified = self._validate_Npts() 1037 #reset npts for fitting textctrl. 1038 self.set_npt2fit() 1037 1039 1038 1040 else: -
sansview/perspectives/fitting/fitpage.py
r2f6c260 r2012eae 81 81 if self.model != None: 82 82 self.smear_description_2d.Show(True) 83 self.npts = len(self.data.data) 84 else: 85 self.npts = len(self.data.x) 86 87 83 88 84 self.disp_cb_dict = {} 89 85 ## to update the panel according to the fit engine type selected … … 193 189 smear_message_slit_height_title = "Slit height[1/A]:" 194 190 smear_message_slit_width_title = "Slit width[1/A]:" 195 #Fit button196 self.btFit = wx.Button(self,wx.NewId(),'Fit', size=(88,25))197 self.btFit.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId())198 self.btFit.SetToolTipString("Start fitting.")199 191 200 192 self._get_smear_info() … … 211 203 sizer_smearer_box = wx.StaticBoxSizer(smear_set_box, wx.HORIZONTAL) 212 204 sizer_smearer_box.SetMinSize((_DATA_BOX_WIDTH,85)) 205 sizer_fit = wx.GridSizer(2, 4,2,6) 206 207 #Fit button 208 self.btFit = wx.Button(self,wx.NewId(),'Fit', size=(88,25)) 209 self.btFit.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId()) 210 self.btFit.SetToolTipString("Start fitting.") 213 211 214 212 #textcntrl for new resolution … … 262 260 self.Npts_fit.SetToolTipString(" Npts : number of points selected for fitting") 263 261 self.Npts_total = BGTextCtrl(self, -1, "-", size=(75,20), style=0) 264 self.Npts_total.SetValue(str(self.npts))265 262 self.Npts_total.SetToolTipString(" Total Npts : total number of data points") 266 263 box_description_1= wx.StaticText(self, -1,' Chi2/Npts') … … 269 266 box_description_4= wx.StaticText(self, -1,' ') 270 267 271 sizer_fit = wx.GridSizer(2, 4,2,6)268 272 269 sizer_fit.Add(box_description_1,0,0) 273 270 sizer_fit.Add(box_description_2,0,0) … … 840 837 841 838 if check_float(tcrtl): 842 flag = self._onparamEnter_helper() 839 flag = self._onparamEnter_helper() 840 self.set_npts2fit() 843 841 if self.fitrange: 844 842 temp_smearer = None … … 1268 1266 return the current chi2 1269 1267 """ 1270 return self.tcChi.Get Label()1268 return self.tcChi.GetValue() 1271 1269 1272 1270 def get_param_list(self): … … 1308 1306 chisqr =chisqr/npt_fit 1309 1307 chi2 = format_number(chisqr) 1310 self.tcChi.Set Label(chi2)1308 self.tcChi.SetValue(chi2) 1311 1309 self.tcChi.Refresh() 1312 1310 else: 1313 self.tcChi.Set Label("-")1311 self.tcChi.SetValue("-") 1314 1312 1315 1313 #Hide error title … … 1770 1768 output= "-" 1771 1769 1772 self.tcChi.Set Label(str(format_number(output)))1770 self.tcChi.SetValue(str(format_number(output))) 1773 1771 1774 1772 self.state.tcChi =self.tcChi
Note: See TracChangeset
for help on using the changeset viewer.