Changeset f3bd37f in sasmodels for sasmodels/compare.py
- Timestamp:
- Jul 17, 2016 2:36:34 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 46ed760
- Parents:
- b9c12fe5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
rdef2c1b rf3bd37f 257 257 Randomize a single parameter. 258 258 """ 259 if any(p.endswith(s) for s in ('_pd _n', '_pd_nsigma', '_pd_type')):259 if any(p.endswith(s) for s in ('_pd', '_pd_n', '_pd_nsigma', '_pd_type')): 260 260 return v 261 261 … … 405 405 raise ValueError("sasview mixture models not supported by compare") 406 406 else: 407 model = get_model(revert_name(model_info)) 407 old_name = revert_name(model_info) 408 if old_name is None: 409 raise ValueError("model %r does not exist in old sasview" 410 % model_info.id) 411 model = get_model(old_name) 408 412 409 413 # build a smearer with which to call the model, if necessary
Note: See TracChangeset
for help on using the changeset viewer.