- Timestamp:
- Jun 30, 2008 3:30:22 PM (16 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:
- d0802c3
- Parents:
- bd30f4a5
- Location:
- prview/perspectives/pr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/perspectives/pr/inversion_panel.py
r35adaf6 rd6113849 416 416 self.nterms_estimate_ctl.SetToolTipString("Waiting for estimate...") 417 417 418 # EVT_TEXT would trigger an event for each character entered 419 #self.nfunc_ctl.Bind(wx.EVT_KILL_FOCUS, self._on_pars_changed) 420 #self.alpha_ctl.Bind(wx.EVT_KILL_FOCUS, self._read_pars) 421 #self.dmax_ctl.Bind(wx.EVT_KILL_FOCUS, self._on_pars_changed) 422 #self.dmax_ctl.Bind(wx.EVT_TEXT_ENTER, self._on_pars_changed) 423 #self.Bind(wx.EVT_TEXT_ENTER, self._on_pars_changed) 424 425 self.nfunc_ctl.Bind(wx.EVT_TEXT, self._on_pars_changed) 418 self.nfunc_ctl.Bind(wx.EVT_TEXT, self._read_pars) 426 419 self.alpha_ctl.Bind(wx.EVT_TEXT, self._read_pars) 427 420 self.dmax_ctl.Bind(wx.EVT_TEXT, self._on_pars_changed) -
prview/perspectives/pr/pr.py
r35adaf6 rd6113849 440 440 self.pr = pr 441 441 442 message = "Computation completed in %g seconds [chi2=%g]" % (elapsed, pr.chi2)443 wx.PostEvent(self.parent, StatusEvent(status=message))442 #message = "Computation completed in %g seconds [chi2=%g]" % (elapsed, pr.chi2) 443 #wx.PostEvent(self.parent, StatusEvent(status=message)) 444 444 445 445 cov = numpy.ascontiguousarray(cov) … … 450 450 self.control_panel.oscillation = pr.oscillations(out) 451 451 #print "OSCILL", pr.oscillations(out) 452 print "PEAKS:", pr.get_peaks(out)452 #print "PEAKS:", pr.get_peaks(out) 453 453 self.control_panel.positive = pr.get_positive(out) 454 454 self.control_panel.pos_err = pr.get_pos_err(out, cov) … … 473 473 wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, title="Iq")) 474 474 475 # Compute the fit I(Q=0)476 try:477 print "I(0) = ", self.pr.iq0(out)478 except:479 pass480 481 # Get R_g482 print "Rg = ", self.pr.rg(out)483 475 # Show I(q) fit 484 476 self.show_iq(out, self.pr) … … 724 716 print "No estimate yet" 725 717 pass 718 try: 719 estimate = int(self.control_panel.nterms_estimate) 720 self.control_panel.nfunc = estimate 721 except: 722 self.control_panel.nfunc = self.nfunc 723 print "No estimate yet" 724 pass 726 725 727 726 self.current_plottable = panel.plots[dataset] 728 727 self.control_panel.plotname = dataset 729 self.control_panel.nfunc = self.nfunc728 #self.control_panel.nfunc = self.nfunc 730 729 self.control_panel.d_max = self.max_length 731 730 self.parent.set_perspective(self.perspective)
Note: See TracChangeset
for help on using the changeset viewer.