Changeset 334c50d in sasview


Ignore:
Timestamp:
Apr 5, 2013 1:57:34 PM (11 years ago)
Author:
Anders Markvardsen <anders.markvardsen@…>
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:
a9fec15
Parents:
846f890
Message:

A few more steps towards getting corfunc perspective to show up.

Currently the error message is:

'module' object has no attribute 'Plugin'

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansview/sansview.py

    rea5fa58 r334c50d  
    103103                                                        APP_NAME) 
    104104            logging.error(sys.exc_value)   
    105  
     105         
     106        #Corfunc perspective    
     107        try: 
     108            import sans.perspectives.corfunc as module     
     109            corfunc_plug = module.Plugin(standalone=False) 
     110            self.gui.add_perspective(corfunc_plug) 
     111        except: 
     112            logging.error("%s: could not find Corfunc plug-in module"% \ 
     113                                                        APP_NAME) 
     114            logging.error(sys.exc_value)   
    106115         
    107116             
  • setup.py

    r6a84c0c r334c50d  
    135135package_dir["sans.calculator"] = "sanscalculator/src/sans/calculator" 
    136136packages.extend(["sans.calculator"]) 
     137 
     138# sans.corfunc 
     139package_dir["sans.corfunc"] = "corfunc/src/sans/corfunc" 
     140packages.extend(["sans.corfunc"]) 
    137141     
    138142# sans.pr 
     
    189193package_data['sans.perspectives.calculator'] = ['images/*', 'media/*'] 
    190194packages.extend(["sans.perspectives", "sans.perspectives.calculator"]) 
     195      
     196# Calculator view 
     197package_dir["sans.perspectives"] = "corfuncview/src/sans/perspectives" 
     198package_dir["sans.perspectives.corfunc"] = os.path.join("corfuncview",  
     199                                "src", "sans", "perspectives", "corfunc") 
     200package_data['sans.perspectives.corfunc'] = ['images/*', 'media/*'] 
     201packages.extend(["sans.perspectives", "sans.perspectives.corfunc"])      
    191202      
    192203# Data util 
Note: See TracChangeset for help on using the changeset viewer.