Changeset 6dc78e4 in sasmodels for sasmodels/convert.py
- Timestamp:
- Aug 17, 2016 3:12:51 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:
- deb854f, 300a2f7
- Parents:
- 6b7e2f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/convert.py
r40a87fa r6dc78e4 180 180 composition_type, parts = model_info.composition 181 181 if composition_type == 'product': 182 oldpars= {'scale':'scale_factor'}183 oldpars.update(_get_old_pars(parts[0]))184 oldpars.update(_get_old_pars(parts[1]))182 translation = {'scale':'scale_factor'} 183 translation.update(_get_translation_table(parts[0])) 184 translation.update(_get_translation_table(parts[1])) 185 185 else: 186 186 raise NotImplementedError("cannot convert to sasview sum") 187 187 else: 188 188 translation = _get_translation_table(model_info) 189 190 189 oldpars = _revert_pars(_unscale_sld(model_info, pars), translation) 190 oldpars = _trim_vectors(model_info, pars, oldpars) 191 191 192 192 # Make sure the control parameter is an integer
Note: See TracChangeset
for help on using the changeset viewer.