Changeset 6e0e2d85 in sasview for sansview/sansview.py


Ignore:
Timestamp:
Jan 4, 2010 6:12:20 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:
2389bd4
Parents:
484faf7
Message:

add calculator perspective

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/sansview.py

    r2a1be2d9 r6e0e2d85  
    5757        except: 
    5858            logging.error("SansView: could not find P(r) plug-in module")  
    59  
     59          
     60        #Calculator perspective    
     61        try: 
     62            import sans.perspectives.calculator as module     
     63            calculator_plug = module.Plugin(standalone=False) 
     64            self.gui.add_perspective(calculator_plug) 
     65        except: 
     66            logging.error("SansView: could not find Calculator plug-in module")  
     67             
     68        # theory perspective 
     69        try: 
     70            import sans.perspectives.theory as module     
     71            theory_plug = module.Plugin(standalone=False) 
     72            self.gui.add_perspective(theory_plug) 
     73        except: 
     74            raise 
     75            #logging.error("SansView: could not find theory plug-in module") 
    6076        # Fitting perspective 
    6177        import perspectives.fitting as module     
Note: See TracChangeset for help on using the changeset viewer.