Changeset f21d496 in sasview for src/sas/perspectives/pr


Ignore:
Timestamp:
Jul 2, 2015 11:13:55 AM (10 years ago)
Author:
Doucet, Mathieu <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:
78f75d02
Parents:
3a5f7c8
Message:

Cleaning up old "standalone" code

Location:
src/sas/perspectives/pr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/pr/inversion_panel.py

    r3db44fb rf21d496  
    3535    oscillation_max = 1.5 
    3636 
    37     def __init__(self, parent, id=-1, plots=None, standalone=False, **kwargs): 
     37    def __init__(self, parent, id=-1, plots=None, **kwargs): 
    3838        """ 
    3939        """ 
     
    8383        ## Data manager 
    8484        self._manager = None 
    85         ## Standalone flage 
    86         self.standalone = standalone 
    8785        ## Default file location for save 
    8886        self._default_save_location = os.getcwd() 
  • src/sas/perspectives/pr/pr.py

    rc1c14ba rf21d496  
    5454    DEFAULT_DMAX = 140.0 
    5555 
    56     def __init__(self, standalone=True): 
    57         PluginBase.__init__(self, name="Pr Inversion", standalone=standalone) 
     56    def __init__(self): 
     57        PluginBase.__init__(self, name="Pr Inversion") 
    5858        ## Simulation window manager 
    5959        self.simview = None 
     
    9494        ## Number of P(r) points to display on the output plot 
    9595        self._pr_npts = 51 
    96         ## Flag to let the plug-in know that it is running standalone 
    97         self.standalone = standalone 
    9896        self._normalize_output = False 
    9997        self._scale_output_unity = False 
     
    623621            return [] 
    624622        elif item.id == graph.selected_plottable: 
    625             if not self.standalone and issubclass(item.__class__, Data1D): 
     623            if issubclass(item.__class__, Data1D): 
    626624                return [["Compute P(r)", 
    627625                         "Compute P(r) from distribution", 
     
    12381236        self.frame = MDIFrame(self.parent, None, 'None', (100, 200)) 
    12391237        self.control_panel = InversionControl(self.frame, -1, 
    1240                                               style=wx.RAISED_BORDER, 
    1241                                               standalone=self.standalone) 
     1238                                              style=wx.RAISED_BORDER) 
    12421239        self.frame.set_panel(self.control_panel) 
    12431240        self._frame_set_helper() 
     
    13171314            [Somehow openGL needs this call] 
    13181315        """ 
    1319         if self.standalone: 
    1320             self.parent.set_perspective(self.perspective) 
     1316        pass 
Note: See TracChangeset for help on using the changeset viewer.