Changeset d6113849 in sasview


Ignore:
Timestamp:
Jun 30, 2008 1:30:22 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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
Message:

More improvements GUI

Location:
prview/perspectives/pr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • prview/perspectives/pr/inversion_panel.py

    r35adaf6 rd6113849  
    416416        self.nterms_estimate_ctl.SetToolTipString("Waiting for estimate...") 
    417417         
    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) 
    426419        self.alpha_ctl.Bind(wx.EVT_TEXT, self._read_pars) 
    427420        self.dmax_ctl.Bind(wx.EVT_TEXT, self._on_pars_changed) 
  • prview/perspectives/pr/pr.py

    r35adaf6 rd6113849  
    440440        self.pr = pr 
    441441         
    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)) 
    444444 
    445445        cov = numpy.ascontiguousarray(cov) 
     
    450450        self.control_panel.oscillation = pr.oscillations(out) 
    451451        #print "OSCILL", pr.oscillations(out) 
    452         print "PEAKS:", pr.get_peaks(out)  
     452        #print "PEAKS:", pr.get_peaks(out)  
    453453        self.control_panel.positive = pr.get_positive(out) 
    454454        self.control_panel.pos_err  = pr.get_pos_err(out, cov) 
     
    473473            wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, title="Iq")) 
    474474                 
    475         # Compute the fit I(Q=0) 
    476         try: 
    477             print "I(0) = ", self.pr.iq0(out) 
    478         except: 
    479             pass 
    480          
    481         # Get R_g 
    482         print "Rg = ", self.pr.rg(out) 
    483475        # Show I(q) fit 
    484476        self.show_iq(out, self.pr) 
     
    724716            print "No estimate yet" 
    725717            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 
    726725         
    727726        self.current_plottable = panel.plots[dataset] 
    728727        self.control_panel.plotname = dataset 
    729         self.control_panel.nfunc = self.nfunc 
     728        #self.control_panel.nfunc = self.nfunc 
    730729        self.control_panel.d_max = self.max_length 
    731730        self.parent.set_perspective(self.perspective) 
Note: See TracChangeset for help on using the changeset viewer.