Changeset 3fd1ebc in sasview
- Timestamp:
- Jun 19, 2008 7:55:59 AM (17 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:
- 7fef474
- Parents:
- aa4b8379
- Location:
- prview/perspectives/pr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/perspectives/pr/inversion_panel.py
raa4b8379 r3fd1ebc 200 200 """ 201 201 if name=='nfunc': 202 int(self.nfunc_ctl.GetValue()) 202 try: 203 return int(self.nfunc_ctl.GetValue()) 204 except: 205 return -1 203 206 elif name=='d_max': 204 self.dmax_ctl.GetValue() 207 try: 208 return self.dmax_ctl.GetValue() 209 except: 210 return -1.0 205 211 elif name=='alpha': 206 self.alpha_ctl.GetValue() 212 try: 213 return self.alpha_ctl.GetValue() 214 except: 215 return -1.0 207 216 elif name=='chi2': 208 self.chi2_ctl.GetValue() 217 try: 218 return float(self.chi2_ctl.GetValue()) 219 except: 220 return -1.0 209 221 elif name=='q_min': 210 self.qmin_ctl.GetValue() 222 try: 223 return float(self.qmin_ctl.GetValue()) 224 except: 225 return 0.0 211 226 elif name=='q_max': 212 self.qmax_ctl.GetValue() 227 try: 228 return float(self.qmax_ctl.GetValue()) 229 except: 230 return 0.0 213 231 elif name=='elapsed': 214 self.time_ctl.GetValue() 232 try: 233 return float(self.time_ctl.GetValue()) 234 except: 235 return -1.0 215 236 elif name=='oscillation': 216 self.osc_ctl.GetValue() 237 try: 238 return float(self.osc_ctl.GetValue()) 239 except: 240 return -1.0 217 241 elif name=='pos': 218 self.pos_ctl.GetValue() 242 try: 243 return float(self.pos_ctl.GetValue()) 244 except: 245 return -1.0 219 246 elif name=='pos_err': 220 self.pos_err_ctl.GetValue()247 return self.pos_err_ctl.GetValue() 221 248 elif name=='alpha_estimate': 222 self.alpha_estimate_ctl.GetValue()249 return self.alpha_estimate_ctl.GetLabel() 223 250 elif name=='plotname': 224 251 if self.standalone==False: 225 self.plot_data.GetValue()252 return self.plot_data.GetValue() 226 253 elif name=='datafile': 227 self.data_file.GetValue()254 return self.data_file.GetValue() 228 255 else: 229 256 wx.Panel.__getattr__(self, name) … … 311 338 self.alpha_ctl.Bind(wx.EVT_KILL_FOCUS, self._read_pars) 312 339 self.dmax_ctl.Bind(wx.EVT_KILL_FOCUS, self._on_pars_changed) 313 self.Bind(wx.EVT_TEXT_ENTER, self._on_pars_changed) 340 #self.dmax_ctl.Bind(wx.EVT_TEXT_ENTER, self._on_pars_changed) 341 #self.Bind(wx.EVT_TEXT_ENTER, self._on_pars_changed) 314 342 315 343 sizer_params = wx.GridBagSizer(5,5) … … 343 371 self.qmin_ctl = wx.TextCtrl(self, -1, size=(60,20)) 344 372 self.qmax_ctl = wx.TextCtrl(self, -1, size=(60,20)) 373 self.qmin_ctl.Bind(wx.EVT_KILL_FOCUS, self._on_pars_changed) 374 self.qmax_ctl.Bind(wx.EVT_KILL_FOCUS, self._on_pars_changed) 345 375 346 376 iy = 0 … … 504 534 nfunc = 5 505 535 dmax = 120 536 qmin = 0 537 qmax = 0 506 538 507 539 flag = True -
prview/perspectives/pr/pr.py
raa4b8379 r3fd1ebc 54 54 ## Current invertor 55 55 self.invertor = None 56 self.pr = None 56 57 ## Calculation thread 57 58 self.calc_thread = None … … 669 670 670 671 # Store a reference to the current plottable 672 # If we have a suggested value, use it. 673 try: 674 estimate = float(self.control_panel.alpha_estimate) 675 self.control_panel.alpha = estimate 676 except: 677 self.control_panel.alpha = self.alpha 678 print "No estimate yet" 679 pass 680 671 681 self.current_plottable = panel.plots[dataset] 672 682 self.control_panel.plotname = dataset 673 683 self.control_panel.nfunc = self.nfunc 674 684 self.control_panel.d_max = self.max_length 675 self.control_panel.alpha = self.alpha676 685 self.parent.set_perspective(self.perspective) 677 686 self.control_panel._on_invert(None)
Note: See TracChangeset
for help on using the changeset viewer.