Changeset e2663b7 in sasview


Ignore:
Timestamp:
Aug 9, 2018 2:10:33 PM (12 days ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ticket-1131, ticket-1142-plugin-reload, win64bit_conda_vm
Children:
18faec7
Parents:
fa374b0
Message:

remove cached model before attempting reload. Refs #1142

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/calculator/pyconsole.py

    rfa374b0 re2663b7  
    5757    result = run_one(path) 
    5858 
     59    # remove cached version of the model, if any 
     60    from sasmodels import sasview_model 
     61    sasview_model.MODEL_BY_PATH.pop(path, None) 
     62 
    5963    # try running the model 
    60     from sasmodels.sasview_model import load_custom_model 
    61     Model = load_custom_model(path) 
     64    Model = sasview_model.load_custom_model(path) 
    6265    model = Model() 
    6366    q =  np.array([0.01, 0.1]) 
Note: See TracChangeset for help on using the changeset viewer.