Changeset 1c8015f in sasview for sansview


Ignore:
Timestamp:
May 26, 2009 8:48:45 PM (15 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:
09a87ae
Parents:
d2ee6f6
Message:

sansview: added P(r) perspective as module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/sansview.py

    r8554ede r1c8015f  
    55# For py2exe, import config here 
    66import local_config 
     7import logging 
    78 
    89 
     
    2223        # modules. We load the fitting module here 
    2324        # to ensure a complete Windows executable build. 
    24         import perspectives.pr as module     
    25         fitting_plug = module.Plugin() 
    26         self.gui.add_perspective(fitting_plug)             
     25 
     26        # P(r) perspective 
     27        try: 
     28            import sans.perspectives.pr as module     
     29            fitting_plug = module.Plugin(standalone=False) 
     30            self.gui.add_perspective(fitting_plug) 
     31        except: 
     32            logging.error("SansView: could not find P(r) plug-in module")  
     33 
     34        # Fitting perspective 
    2735        import perspectives.fitting as module     
    2836        fitting_plug = module.Plugin() 
    2937        self.gui.add_perspective(fitting_plug) 
     38         
    3039        # Build the GUI 
    3140        self.gui.build_gui() 
Note: See TracChangeset for help on using the changeset viewer.