Changes in / [041bc75:483a022] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
re4bf271 r64f0a1c 125 125 if not hasattr(model, 'filename'): 126 126 model.filename = kernel_module.__file__ 127 # For old models, treat .pyc and .py files interchangeably. 128 # This is needed because of the Sum|Multi(p1,p2) types of models 129 # and the convoluted way in which they are created. 130 if model.filename.endswith(".py"): 131 logging.info("Loading %s as .pyc", model.filename) 132 model.filename = model.filename+'c' 127 133 if not hasattr(model, 'id'): 128 134 model.id = splitext(basename(model.filename))[0]
Note: See TracChangeset
for help on using the changeset viewer.