Changeset 3fd1ebc in sasview for prview/perspectives/pr/pr.py


Ignore:
Timestamp:
Jun 19, 2008 9:55:59 AM (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:
7fef474
Parents:
aa4b8379
Message:

Better behavior of "compute" context menu item

File:
1 edited

Legend:

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

    raa4b8379 r3fd1ebc  
    5454        ## Current invertor 
    5555        self.invertor    = None 
     56        self.pr          = None 
    5657        ## Calculation thread 
    5758        self.calc_thread = None 
     
    669670         
    670671        # 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         
    671681        self.current_plottable = panel.plots[dataset] 
    672682        self.control_panel.plotname = dataset 
    673683        self.control_panel.nfunc = self.nfunc 
    674684        self.control_panel.d_max = self.max_length 
    675         self.control_panel.alpha = self.alpha 
    676685        self.parent.set_perspective(self.perspective) 
    677686        self.control_panel._on_invert(None) 
Note: See TracChangeset for help on using the changeset viewer.