Changeset ea05c87 in sasmodels for sasmodels/product.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/product.py
raaf75b6 rea05c87 41 41 if len(set(p.name for p in pars)) != len(pars): 42 42 raise ValueError("Duplicate parameters in %s and %s"%(p_id)) 43 # For comparison with sasview, determine the old parameters.44 oldname = [p_info['oldname'], s_info['oldname']]45 oldpars = {'scale':'scale_factor'}46 oldpars.update(p_info['oldpars'])47 oldpars.update(s_info['oldpars'])48 49 43 model_info = {} 50 44 model_info['id'] = '*'.join((p_id, s_id)) … … 62 56 #model_info['source'] = [] 63 57 # Iq, Iqxy, form_volume, ER, VR and sesans 64 model_info['oldname'] = oldname65 model_info['oldpars'] = oldpars66 58 model_info['composition'] = ('product', [p_info, s_info]) 67 59 return model_info
Note: See TracChangeset
for help on using the changeset viewer.