Changeset 4d6cce0 in sasview


Ignore:
Timestamp:
Feb 26, 2010 3:16:09 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
56f8401
Parents:
b324aa9
Message:

add imvariant plug-in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/sansview.py

    r89b0a92 r4d6cce0  
    5050        # modules. We load the fitting module here 
    5151        # to ensure a complete Windows executable build. 
    52  
     52         
    5353        # P(r) perspective 
    5454        try: 
    5555            import sans.perspectives.pr as module     
    56             self.fitting_plug = module.Plugin(standalone=False) 
    57             self.gui.add_perspective(self.fitting_plug) 
     56            pr_plug = module.Plugin(standalone=False) 
     57            self.gui.add_perspective(pr_plug) 
    5858        except: 
    5959            logging.error("SansView: could not find P(r) plug-in module")  
    60           
     60         
     61        #Invariant perspective 
     62        try: 
     63            import sans.perspectives.invariant as module     
     64            invariant_plug = module.Plugin(standalone=False) 
     65            self.gui.add_perspective(invariant_plug) 
     66        except: 
     67            logging.error("SansView: could not find Invariant plug-in module")  
     68         
    6169        #Calculator perspective    
    6270        try: 
     
    7583            raise 
    7684            #logging.error("SansView: could not find theory plug-in module") 
    77         # Fitting perspective 
    78         import perspectives.fitting as module     
    79         self.fitting_plug = module.Plugin() 
    80         self.gui.add_perspective(self.fitting_plug) 
    81          
     85            # Fitting perspective 
     86            import perspectives.fitting as module     
     87            fitting_plug = module.Plugin() 
     88            self.gui.add_perspective(fitting_plug) 
     89        
    8290        # Add welcome page 
    8391        self.gui.set_welcome_panel(WelcomePanel) 
Note: See TracChangeset for help on using the changeset viewer.