Changeset 20a70bc in sasmodels


Ignore:
Timestamp:
Oct 10, 2016 2:14:26 PM (8 years ago)
Author:
mathieu
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c
Parents:
5a22548
Message:

Make sure old-style v3 models load, and reload. Fixes #751

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    r2f2c70c r20a70bc  
    123123        if model.name == "": 
    124124            model.name = splitext(basename(path))[0] 
     125        if not hasattr(model, 'filename'): 
     126            model.filename = kernel_module.__file__ 
    125127    except AttributeError: 
    126128        model_info = modelinfo.make_model_info(kernel_module) 
Note: See TracChangeset for help on using the changeset viewer.