Changeset cbf4604 in sasmodels
- Timestamp:
- Aug 5, 2016 6:50:33 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:
- 906cadf
- Parents:
- baa79c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/conversion_table.py
r54bcd4a rcbf4604 1 """ 2 Parameter conversion table 3 4 *CONVERSION_TABLE* gives the old model name and a dictionary of old parameter 5 names for each parameter in sasmodels. This is used by :mod:`convert` to 6 determine the equivalent parameter set when comparing a sasmodels model to 7 the models defined in SasView 3.1. 8 """ 9 10 1 11 CONVERSION_TABLE = { 2 12 "adsorbed_layer": [ … … 700 710 # keys from the gnerator expression ((k,v) for k,v in seq) when 701 711 # used as dict((generator), **{...}) 702 dict(((field_new+str(index+1), field_old+str(index))703 for field_new, field_old in [("sld","sld_flat"),704 ("thickness","thick_flat"),705 ("interface","thick_inter"),706 ("shape","func_inter"),707 ("nu","nu_inter"),]708 for index in range(11)),712 dict(((field_new+str(index+1), field_old+str(index)) 713 for field_new, field_old in [("sld", "sld_flat"), 714 ("thickness", "thick_flat"), 715 ("interface", "thick_inter"), 716 ("shape", "func_inter"), 717 ("nu", "nu_inter"),] 718 for index in range(11)), 709 719 **{ 710 "n_shells": "n_shells",711 "n_steps": "npts_inter",712 "sld_solvent": "sld_solv",713 "thickness1": "rad_core0",714 "sld1": "sld_core0",715 })720 "n_shells": "n_shells", 721 "n_steps": "npts_inter", 722 "sld_solvent": "sld_solv", 723 "thickness1": "rad_core0", 724 "sld1": "sld_core0", 725 }) 716 726 ], 717 727 "squarewell": [
Note: See TracChangeset
for help on using the changeset viewer.