Changeset 73c200a in sasview for sansview/sansview.py


Ignore:
Timestamp:
Mar 30, 2011 1:29:11 PM (14 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:
1c95d15
Parents:
cd0d039
Message:

remove uunused import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/sansview.py

    r3b72b36 r73c200a  
    2828import logging 
    2929 
    30 # Application dimensions 
    31 APP_HEIGHT = 820 
    32 APP_WIDTH  = 1050 
    33 GSTYLE = GUIFRAME.MULTIPLE_APPLICATIONS|GUIFRAME.TOOL_ON 
    3430 
    3531class SansViewApp(gui_manager.ViewApp): 
     
    7672            self.gui.add_perspective(invariant_plug) 
    7773        except: 
    78             raise 
    79             #logging.error("SansView: could not find Invariant plug-in module")  
    80             #logging.error(sys.exc_value)   
     74            logging.error("SansView: could not find Invariant plug-in module")  
     75            logging.error(sys.exc_value)   
    8176         
    8277        #Calculator perspective    
     
    8883            logging.error("SansView: could not find Calculator plug-in module") 
    8984            logging.error(sys.exc_value)   
    90              
    91         """  
    92         # theory perspective 
    93         try: 
    94             import sans.perspectives.theory as module     
    95             theory_plug = module.Plugin(standalone=False) 
    96             self.gui.add_perspective(theory_plug) 
    97         except: 
    98             logging.error("SansView: could not find theory plug-in module") 
    99             logging.error(sys.exc_value)  
    100         """  
    101              
    102         # Fitting perspective 
    103         import perspectives.fitting as module     
    104         fitting_plug = module.Plugin() 
    105         self.gui.add_perspective(fitting_plug) 
    106         
     85    
    10786        # Add welcome page 
    10887        self.gui.set_welcome_panel(WelcomePanel) 
Note: See TracChangeset for help on using the changeset viewer.