Changeset 6fb559d in sasview for src/sas/sasgui/perspectives/fitting


Ignore:
Timestamp:
Jul 5, 2016 4:00:02 AM (8 years ago)
Author:
wojciech
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:
eccbf14
Parents:
80c5d46
Message:

Fixing perspectives/fitting/models.py so plugin models are skipped when don't exist in .sasview/plugins dir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/models.py

    r7673ecd r6fb559d  
    181181            try: 
    182182                model = load_custom_model(path) 
     183                plugins[model.name] = model 
    183184            except Exception: 
    184185                msg = traceback.format_exc() 
     
    187188                logging.warning("Failed to load plugin %r. See %s for details" 
    188189                                % (path, PLUGIN_LOG)) 
    189             plugins[model.name] = model 
    190  
     190             
    191191    return plugins 
    192192 
Note: See TracChangeset for help on using the changeset viewer.