Changeset ea05c87 in sasmodels for sasmodels/compare.py
- Timestamp:
- Apr 4, 2016 4:47:27 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:
- 1e2a1ba
- Parents:
- 9d96649 (diff), ec45c4f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
raaf75b6 rea05c87 41 41 from .data import plot_theory, empty_data1D, empty_data2D 42 42 from .direct_model import DirectModel 43 from .convert import revert_ pars, constrain_new_to_old43 from .convert import revert_name, revert_pars, constrain_new_to_old 44 44 45 45 USAGE = """ … … 341 341 def eval_sasview(model_info, data): 342 342 """ 343 Return a model calculator using the SasView fitting engine.343 Return a model calculator using the pre-4.0 SasView models. 344 344 """ 345 345 # importing sas here so that the error message will be that sas failed to … … 360 360 composition_type, parts = model_info['composition'] 361 361 if composition_type == 'product': 362 from sas. sascalc.fit.MultiplicationModel import MultiplicationModel363 P, S = [get_model( p) for p in model_info['oldname']]362 from sas.models.MultiplicationModel import MultiplicationModel 363 P, S = [get_model(revert_name(p)) for p in parts] 364 364 model = MultiplicationModel(P, S) 365 365 else: 366 366 raise ValueError("sasview mixture models not supported by compare") 367 367 else: 368 model = get_model( model_info['oldname'])368 model = get_model(revert_name(model_info)) 369 369 370 370 # build a smearer with which to call the model, if necessary
Note: See TracChangeset
for help on using the changeset viewer.