source: sasmodels/sasmodels/conversion_table.py @ 85190c2

core_shell_microgelscostrafo411magnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 85190c2 was 0c2da4b, checked in by Paul Kienzle <pkienzle@…>, 7 years ago

Merge branch 'master' into ticket-843

  • Property mode set to 100644
File size: 24.4 KB
RevLine 
[cbf4604]1"""
2Parameter conversion table
3
4*CONVERSION_TABLE* gives the old model name and a dictionary of old parameter
5names for each parameter in sasmodels.  This is used by :mod:`convert` to
6determine the equivalent parameter set when comparing a sasmodels model to
[298621b]7the models defined in previous versions of SasView and sasmodels. This is now
8versioned based on the version number of SasView.
9
10When any sasmodels parameter or model name is changed, this must be modified to
11account for that.
12
13Usage:
14<old_Sasview_version> : {
15    <new_model_name> : [
16        <old_model_name> ,
17        {
18            <new_param_name_1> : <old_param_name_1>,
19            ...
20            <new_param_name_n> : <old_param_name_n>
21        }
22    ]
23}
[cbf4604]24
[298621b]25Any future parameter and model name changes can and should be given in this
26table for future compatibility.
[cbf4604]27"""
28
[32e3c9b]29CONVERSION_TABLE = {
[86e8e66]30    (3,1,2) : {
[32e3c9b]31    "adsorbed_layer": [
32        "Core2ndMomentModel",
33        {
34            "scale": "scale",
35            "second_moment": "second_moment",
36            "density_shell": "density_poly",
37            "sld_solvent": "sld_solv",
38            "radius": "radius_core",
39            "volfraction": "volf_cores",
40            "background": "background",
41            "adsorbed_amount": "ads_amount",
42            "sld_shell": "sld_poly"
43        }
44    ],
45    "barbell": [
46        "BarBellModel",
47        {
48            "sld": "sld_barbell",
49            "length": "len_bar",
[5b60eeb]50            "radius_bell": "rad_bell",
[32e3c9b]51            "radius": "rad_bar",
52            "sld_solvent": "sld_solv"
53        }
54    ],
55    "bcc_paracrystal": [
56        "BCCrystalModel",
57        {
58            "sld": "sldSph",
59            "sld_solvent": "sldSolv"
60        }
61    ],
62    "be_polyelectrolyte": [
63        "BEPolyelectrolyte",
64        {
65            "ionization_degree": "alpha",
66            "polymer_concentration": "c",
67            "salt_concentration": "cs",
68            "virial_param": "h",
69            "background": "background",
70            "contrast_factor": "k",
71            "bjerrum_length": "lb",
72            "monomer_length": "b"
73        }
74    ],
75    "binary_hard_sphere": [
76        "BinaryHSModel",
77        {
78            "sld_sm": "ss_sld",
79            "sld_lg": "ls_sld",
80            "volfraction_sm": "vol_frac_ss",
81            "radius_lg": "l_radius",
82            "radius_sm": "s_radius",
83            "volfraction_lg": "vol_frac_ls",
84            "sld_solvent": "solvent_sld"
85        }
86    ],
87    "broad_peak": [
88        "BroadPeakModel",
89        {
90            "peak_pos": "q_peak",
91            "scale": None,
92            "lorentz_length": "length_l",
93            "porod_scale": "scale_p",
94            "lorentz_exp": "exponent_l",
95            "lorentz_scale": "scale_l",
96            "porod_exp": "exponent_p"
97        }
98    ],
99    "capped_cylinder": [
100        "CappedCylinderModel",
101        {
102            "sld": "sld_capcyl",
103            "length": "len_cyl",
[5b60eeb]104            "radius_cap": "rad_cap",
[32e3c9b]105            "radius": "rad_cyl",
106            "sld_solvent": "sld_solv"
107        }
108    ],
109    "core_multi_shell": [
110        "CoreMultiShellModel",
111        {
112            "thickness": "thick_shell",
113            "sld": "sld_shell",
114            "radius": "rad_core0",
115            "sld_core": "sld_core0",
116            "sld_solvent": "sld_solv",
[f1765a2]117            "n": "n_shells",
118            "M0:sld_core": "M0_sld_core0",
119            "mtheta:sld_core": "M_theta_core0",
120            "mphi:sld_core": "M_phi_core0",
121            "M0:sld1": "M0_sld_shell1",
122            "mtheta:sld1": "M_theta_shell1",
123            "mphi:sld1": "M_phi_shell1",
124            "M0:sld2": "M0_sld_shell2",
125            "mtheta:sld2": "M_theta_shell2",
126            "mphi:sld2": "M_phi_shell2",
127            "M0:sld3": "M0_sld_shell3",
128            "mtheta:sld3": "M_theta_shell3",
129            "mphi:sld3": "M_phi_shell3",
130            "M0:sld4": "M0_sld_shell4",
131            "mtheta:sld4": "M_theta_shell4",
132            "mphi:sld4": "M_phi_shell4",
133            "M0:sld_solvent": "M0_sld_solv",
134            "mtheta:sld_solvent": "M_theta_solv",
135            "mphi:sld_solvent": "M_phi_solv",
136            "up:frac_i": "Up_frac_i",
137            "up:frac_f": "Up_frac_f",
138            "up:angle": "Up_theta",
[32e3c9b]139        }
140    ],
141    "core_shell_bicelle": [
142        "CoreShellBicelleModel",
143        {
144            "phi": "axis_phi",
145            "sld_core": "core_sld",
146            "sld_rim": "rim_sld",
[5b60eeb]147            "thick_face": "face_thick",
[32e3c9b]148            "sld_solvent": "solvent_sld",
[5b60eeb]149            "thick_rim": "rim_thick",
[32e3c9b]150            "sld_face": "face_sld",
151            "theta": "axis_theta"
152        }
153    ],
154    "core_shell_cylinder": [
155        "CoreShellCylinderModel",
156        {
157            "theta": "axis_theta",
158            "phi": "axis_phi",
159            "sld_shell": "shell_sld",
160            "sld_solvent": "solvent_sld",
161            "sld_core": "core_sld"
162        }
163    ],
[aea515c]164    "core_shell_ellipsoid:1": [
[5f1acda]165        "CoreShellEllipsoidModel",
166        {
167            "sld_core": "sld_core",
[1b49bf8]168            "sld_shell": "sld_shell",
[5f1acda]169            "sld_solvent": "sld_solvent",
[fa6d6fc]170            "radius_equat_core": "equat_core",
[aea515c]171            "x_core": "polar_core",
[fa6d6fc]172            "thick_shell": "equat_shell",
[aea515c]173            "x_polar_shell": "polar_shell",
[1b49bf8]174            "theta": "axis_theta",
175            "phi": "axis_phi",
[5f1acda]176        }
177    ],
178    "core_shell_ellipsoid": [
[32e3c9b]179        "CoreShellEllipsoidXTModel",
180        {
181            "sld_core": "sld_core",
[1b49bf8]182            "sld_shell": "sld_shell",
[32e3c9b]183            "sld_solvent": "sld_solvent",
[1b49bf8]184            "radius_equat_core": "equat_core",
[5b60eeb]185            "thick_shell": "T_shell",
[1b49bf8]186            "x_core": "X_core",
[32e3c9b]187            "x_polar_shell": "XpolarShell",
188            "theta": "axis_theta",
[1b49bf8]189            "phi": "axis_phi",
[32e3c9b]190        }
191    ],
192    "core_shell_parallelepiped": [
193        "CSParallelepipedModel",
194        {
195            "sld_core": "sld_pcore",
[14838a3]196            "sld_a": "sld_rimA",
[32e3c9b]197            "sld_b": "sld_rimB",
[14838a3]198            "sld_c": "sld_rimC",
[32e3c9b]199            "sld_solvent": "sld_solv",
[5b60eeb]200            "length_a": "shortA",
201            "length_b": "midB",
202            "length_c": "longC",
[14838a3]203            "thick_rim_a": "rimA",
204            "thick_rim_c": "rimC",
205            "thick_rim_b": "rimB",
206            "theta": "parallel_theta",
207            "phi": "parallel_phi",
208            "psi": "parallel_psi",
[32e3c9b]209        }
210    ],
211    "core_shell_sphere": [
212        "CoreShellModel",
213        {
[f1765a2]214            "sld_core": "core_sld",
[32e3c9b]215            "sld_shell": "shell_sld",
216            "sld_solvent": "solvent_sld",
[f1765a2]217            "M0:sld_core": "M0_sld_core",
218            "mtheta:sld_core": "M_theta_core",
219            "mphi:sld_core": "M_phi_core",
220            "M0:sld_shell": "M0_sld_shell",
221            "mtheta:sld_shell": "M_theta_shell",
222            "mphi:sld_shell": "M_phi_shell",
223            "M0:sld_solvent": "M0_sld_solv",
224            "mtheta:sld_solvent": "M_theta_solv",
225            "mphi:sld_solvent": "M_phi_solv",
226            "up:frac_i": "Up_frac_i",
227            "up:frac_f": "Up_frac_f",
228            "up:angle": "Up_theta"
[32e3c9b]229        }
230    ],
231    "correlation_length": [
[d2fb4af]232        "CorrLength",
[32e3c9b]233        {
234            "porod_scale": "scale_p",
235            "lorentz_scale": "scale_l",
[5b60eeb]236            "porod_exp": "exponent_p",
237            "lorentz_exp": "exponent_l",
[32e3c9b]238            "cor_length": "length_l"
[bb584b3]239        },
240        "CorrLengthModel"
[32e3c9b]241    ],
242    "cylinder": [
243        "CylinderModel",
244        {
245            "sld": "sldCyl",
246            "theta": "cyl_theta",
247            "phi": "cyl_phi",
248            "sld_solvent": "sldSolv",
249            "M0:sld": "M0_sld_cyl",
250            "mtheta:sld": "M_theta_cyl",
251            "mphi:sld": "M_phi_cyl",
252            "M0:sld_solvent": "M0_sld_solv",
253            "mtheta:sld_solvent": "M_theta_solv",
254            "mphi:sld_solvent": "M_phi_solv",
255            "up:frac_i": "Up_frac_i",
256            "up:frac_f": "Up_frac_f",
257            "up:angle": "Up_theta"
258        }
259    ],
260    "dab": [
261        "DABModel",
262        {
[1b49bf8]263            "cor_length": "length"
[32e3c9b]264        }
265    ],
266    "ellipsoid": [
267        "EllipsoidModel",
268        {
269            "phi": "axis_phi",
[5b60eeb]270            "radius_equatorial": "radius_b",
[32e3c9b]271            "sld": "sldEll",
272            "theta": "axis_theta",
[5b60eeb]273            "radius_polar": "radius_a",
[32e3c9b]274            "sld_solvent": "sldSolv"
275        }
276    ],
277    "elliptical_cylinder": [
278        "EllipticalCylinderModel",
279        {
[68425bf]280            "axis_ratio": "r_ratio",
281            "radius_minor": "r_minor",
282            "sld": "sldCyl",
283            "sld_solvent": "sldSolv",
284            "theta": "cyl_theta",
[32e3c9b]285            "phi": "cyl_phi",
286            "psi": "cyl_psi",
287        }
288    ],
289    "fcc_paracrystal": [
290        "FCCrystalModel",
291        {
292            "sld": "sldSph",
293            "sld_solvent": "sldSolv"
294        }
295    ],
296    "flexible_cylinder": [
297        "FlexibleCylinderModel",
298        {
299            "sld": "sldCyl",
300            "sld_solvent": "sldSolv"
301        }
302    ],
303    "flexible_cylinder_elliptical": [
304        "FlexCylEllipXModel",
305        {
306            "sld": "sldCyl",
307            "sld_solvent": "sldSolv"
308        }
309    ],
310    "fractal": [
311        "FractalModel",
312        {
313            "sld_block": "sldBlock",
314            "radius": "radius",
315            "cor_length": "cor_length",
316            "sld_solvent": "sldSolv",
317            "fractal_dim": "fractal_dim"
318        }
319    ],
320    "fractal_core_shell": [
[d2fb4af]321        "FractalCoreShell",
[32e3c9b]322        {
[1b49bf8]323            "sld_core": "core_sld",
[32e3c9b]324            "sld_shell": "shell_sld",
325            "sld_solvent": "solvent_sld",
[1b49bf8]326            "radius": "radius",
327            "thickness": "thickness",
328            "fractal_dim": "frac_dim",
329            "cor_length": "cor_length",
330            "volfraction": "volfraction",
[bb584b3]331        },
332        "FractalCoreShellModel"
[32e3c9b]333    ],
334    "fuzzy_sphere": [
335        "FuzzySphereModel",
336        {
337            "sld": "sldSph",
338            "fuzziness": "fuzziness",
339            "radius": "radius",
340            "sld_solvent": "sldSolv"
341        }
342    ],
343    "gauss_lorentz_gel": [
[d2fb4af]344        "GaussLorentzGel",
[32e3c9b]345        {
[5b60eeb]346            "gauss_scale": "scale_g",
347            "cor_length_dynamic": "dyn_colength",
348            "cor_length_static": "stat_colength",
[32e3c9b]349            "background": "background",
[2f46e83]350            "lorentz_scale": "scale_l"
[bb584b3]351        },
352        "GaussLorentzGelModel"
[32e3c9b]353    ],
354    "gaussian_peak": [
[d2fb4af]355        "Peak Gauss Model",
[32e3c9b]356        {
[1b49bf8]357            "peak_pos": "q0",
358            "sigma": "B",
[bb584b3]359        },
360        "PeakGaussModel",
[32e3c9b]361    ],
362    "gel_fit": [
363        "GelFitModel",
364        {
[5b60eeb]365            "rg": "radius",
366            "lorentz_scale": "lScale",
[1b49bf8]367            "guinier_scale": "gScale",
[077666e]368            "fractal_dim": "FractalExp",
[32e3c9b]369            "cor_length": "zeta",
370        }
371    ],
372    "guinier": [
[d2fb4af]373        "Guinier",
[32e3c9b]374        {
375            "rg": "rg"
[bb584b3]376        },
377        "GuinierModel",
[32e3c9b]378    ],
379    "guinier_porod": [
[d2fb4af]380        "GuinierPorod",
[32e3c9b]381        {
382            "s": "dim",
383            "rg": "rg",
[1b49bf8]384            "porod_exp": "m",
[32e3c9b]385            "scale": "scale",
386            "background": "background"
[bb584b3]387        },
388        "GuinierPorodModel",
[32e3c9b]389    ],
390    "hardsphere": [
391        "HardsphereStructure",
392        {
[e85aa2e]393            "scale": "scale_factor",
[32e3c9b]394            "radius_effective": "effect_radius",
395        }
396    ],
397    "hayter_msa": [
398        "HayterMSAStructure",
399        {
[e85aa2e]400            "scale": "scale_factor",
[32e3c9b]401            "radius_effective": "effect_radius",
[1b49bf8]402            "volfraction": "volfraction",
403            "charge": "charge",
404            "temperature": "temperature",
405            "concentration_salt": "saltconc",
406            "dielectconst": "dielectconst",
[32e3c9b]407        }
408    ],
409    "hollow_cylinder": [
410        "HollowCylinderModel",
411        {
[1b49bf8]412            "sld": "sldCyl",
[32e3c9b]413            "sld_solvent": "sldSolv",
[1b49bf8]414            "radius": "core_radius",
415            "thickness": "radius",
[32e3c9b]416            "length": "length",
[1b49bf8]417            "theta": "axis_theta",
418            "phi": "axis_phi",
[32e3c9b]419        }
420    ],
421    "hollow_rectangular_prism": [
422        "RectangularHollowPrismModel",
423        {
424            "sld": "sldPipe",
425            "sld_solvent": "sldSolv",
[aea515c]426            "length_a": "short_side",
427            "b2a_ratio": "b2a_ratio",
428            "c2a_ratio": "c2a_ratio",
429            "thickness": "thickness",
[32e3c9b]430        }
431    ],
432    "hollow_rectangular_prism_thin_walls": [
433        "RectangularHollowPrismInfThinWallsModel",
434        {
435            "sld": "sldPipe",
[aea515c]436            "sld_solvent": "sldSolv",
[5b60eeb]437            "length_a": "short_side",
[aea515c]438            "b2a_ratio": "b2a_ratio",
439            "c2a_ratio": "c2a_ratio",
[32e3c9b]440        }
441    ],
442    "lamellar": [
443        "LamellarModel",
444        {
445            "sld": "sld_bi",
446            "sld_solvent": "sld_sol",
447            "thickness": "bi_thick"
448        }
449    ],
450    "lamellar_hg": [
451        "LamellarFFHGModel",
452        {
453            "sld": "sld_tail",
454            "sld_solvent": "sld_solvent",
455            "sld_head": "sld_head",
[5b60eeb]456            "length_tail": "t_length",
457            "length_head": "h_thickness"
[32e3c9b]458        }
459    ],
460    "lamellar_hg_stack_caille": [
461        "LamellarPSHGModel",
462        {
[1b49bf8]463            "sld": "sld_tail",
[32e3c9b]464            "sld_head": "sld_head",
[1b49bf8]465            "sld_solvent": "sld_solvent",
[5b60eeb]466            "length_tail": "deltaT",
467            "length_head": "deltaH",
[1b49bf8]468            "d_spacing": "spacing",
469            "Caille_parameter": "caille",
470            "Nlayers": "n_plates",
[32e3c9b]471        }
472    ],
473    "lamellar_stack_caille": [
474        "LamellarPSModel",
475        {
476            "sld": "sld_bi",
[1b49bf8]477            "sld_solvent": "sld_sol",
478            "thickness": "delta",
479            "d_spacing": "spacing",
[32e3c9b]480            "Caille_parameter": "caille",
[077666e]481            "Nlayers": "n_plates",
[32e3c9b]482        }
483    ],
484    "lamellar_stack_paracrystal": [
485        "LamellarPCrystalModel",
486        {
487            "sld": "sld_layer",
[1b49bf8]488            "sld_solvent": "sld_solvent",
489            "thickness": "thickness",
490            "d_spacing": "spacing",
[5b60eeb]491            "sigma_d": "pd_spacing",
[1b49bf8]492            "Nlayers": "Nlayers",
[32e3c9b]493        }
494    ],
495    "line": [
496        "LineModel",
497        {
498            "slope": "B",
499            "scale": None,
500            "background": None,
501            "intercept": "A"
502        }
503    ],
504    "linear_pearls": [
505        "LinearPearlsModel",
506        {
507            "sld": "sld_pearl",
508            "sld_solvent": "sld_solv",
509            "edge_sep": "edge_separation"
510        }
511    ],
512    "lorentz": [
[d2fb4af]513        "Lorentz",
[32e3c9b]514        {
515            "cor_length": "length"
[bb584b3]516        },
517        "LorentzModel",
[32e3c9b]518    ],
519    "mass_fractal": [
520        "MassFractalModel",
521        {
522            "cutoff_length": "co_length",
523            "radius": "radius",
[5b60eeb]524            "fractal_dim_mass": "mass_dim"
[32e3c9b]525        }
526    ],
527    "mass_surface_fractal": [
528        "MassSurfaceFractal",
529        {
[5b60eeb]530            "rg_cluster": "cluster_rg",
531            "fractal_dim_mass": "mass_dim",
[32e3c9b]532            "radius": "radius",
[5b60eeb]533            "fractal_dim_surf": "surface_dim",
534            "rg_primary": "primary_rg"
[32e3c9b]535        }
536    ],
537    "mono_gauss_coil": [
[d2fb4af]538        "Debye",
[32e3c9b]539        {
[5b60eeb]540            "rg": "rg",
[aea515c]541            "i_zero": "scale",
542            "background": "background",
[bb584b3]543        },
544        "DebyeModel",
[32e3c9b]545    ],
546    "multilayer_vesicle": [
547        "MultiShellModel",
548        {
[f67f26c]549            "radius": "core_radius",
550            "sld_solvent": "core_sld",
[d3e3f756]551            "n_shells": "n_pairs",
[f67f26c]552            "thick_shell": "s_thickness",
[32e3c9b]553            "sld": "shell_sld",
554            "thick_solvent": "w_thickness",
555        }
556    ],
557    "onion": [
558        "OnionExpShellModel",
559        {
560            "n_shells": "n_shells",
561            "A": "A_shell",
562            "sld_core": "sld_core0",
[5b60eeb]563            "radius_core": "rad_core0",
[32e3c9b]564            "sld_solvent": "sld_solv",
565            "thickness": "thick_shell",
566            "sld_in": "sld_in_shell",
567            "sld_out": "sld_out_shell"
568        }
569    ],
570    "parallelepiped": [
571        "ParallelepipedModel",
572        {
573            "phi": "parallel_phi",
574            "psi": "parallel_psi",
575            "sld_solvent": "sldSolv",
[5b60eeb]576            "length_a": "short_a",
577            "length_b": "short_b",
[32e3c9b]578            "sld": "sldPipe",
579            "theta": "parallel_theta",
[5b60eeb]580            "length_c": "long_c",
[f1765a2]581            "M0:sld": "M0_sld_pipe",
582            "mtheta:sld": "M_theta_pipe",
583            "mphi:sld": "M_phi_pipe",
584            "M0:sld_solvent": "M0_sld_solv",
585            "mtheta:sld_solvent": "M_theta_solv",
586            "mphi:sld_solvent": "M_phi_solv",
587            "up:frac_i": "Up_frac_i",
588            "up:frac_f": "Up_frac_f",
589            "up:angle": "Up_theta",
[32e3c9b]590        }
591    ],
592    "peak_lorentz": [
[d2fb4af]593        "Peak Lorentz Model",
[32e3c9b]594        {
595            "peak_pos": "q0",
596            "peak_hwhm": "B"
[bb584b3]597        },
598        "PeakLorentzModel",
[32e3c9b]599    ],
600    "pearl_necklace": [
601        "PearlNecklaceModel",
602        {
603            "scale": "scale",
[aea515c]604            "thick_string": "thick_string",
[32e3c9b]605            "sld_string": "sld_string",
606            "sld_solvent": "sld_solv",
[5b60eeb]607            "edge_sep": "edge_separation",
[aea515c]608            "num_pearls": "num_pearls",
[32e3c9b]609            "radius": "radius",
610            "background": "background",
611            "sld": "sld_pearl"
612        }
613    ],
614    "poly_gauss_coil": [
615        "Poly_GaussCoil",
616        {
[5b60eeb]617            "rg": "rg",
[32e3c9b]618            "polydispersity": "poly_m",
[aea515c]619            "i_zero": "scale",
620            "background": "background",
[32e3c9b]621        }
622    ],
623    "polymer_excl_volume": [
624        "PolymerExclVolume",
625        {
626            "rg": "rg",
627            "scale": "scale",
628            "background": "background",
629            "porod_exp": "m"
630        }
631    ],
632    "polymer_micelle": [
633        "MicelleSphCoreModel",
634        {
635            "sld_corona": "rho_corona",
636            "sld_solvent": "rho_solv",
[1b49bf8]637            "sld_core": "rho_core",
638            "ndensity": "ndensity",
639            "v_core": "v_core",
640            "v_corona": "v_corona",
641            "radius_core": "radius_core",
642            "rg": "radius_gyr",
643            "d_penetration": "d_penetration",
644            "n_aggreg": "n_aggreg",
[32e3c9b]645        }
646    ],
647    "porod": [
648        "PorodModel",
649        {
650            "scale": "scale",
651            "background": "background"
652        }
653    ],
654    "power_law": [
655        "PowerLawAbsModel",
656        {
657            "scale": "scale",
658            "background": "background",
659            "power": "m"
660        }
661    ],
662    "pringle": [
663        "PringlesModel",
664        {
665            "scale": "scale",
[aea515c]666            "sld_solvent": "sld_solvent",
[32e3c9b]667            "thickness": "thickness",
668            "beta": "beta",
669            "radius": "radius",
670            "background": "background",
671            "alpha": "alpha",
[5b60eeb]672            "sld": "sld_pringle"
[32e3c9b]673        }
674    ],
675    "raspberry": [
676        "RaspBerryModel",
677        {
678            "volfraction_lg": "volf_Lsph",
679            "volfraction_sm": "volf_Ssph",
680            "radius_sm": "radius_Ssph",
681            "radius_lg": "radius_Lsph",
682            "sld_lg": "sld_Lsph",
683            "sld_sm": "sld_Ssph",
684            "sld_solvent": "sld_solv",
685            "surface_fraction": "surfrac_Ssph",
686            "penetration": "delta_Ssph"
687        }
688    ],
689    "rectangular_prism": [
690        "RectangularPrismModel",
691        {
692            "sld": "sldPipe",
[5b60eeb]693            "length_a": "short_side",
[aea515c]694            "b2a_ratio": "b2a_ratio",
695            "c2a_ratio": "c2a_ratio",
[32e3c9b]696            "sld_solvent": "sldSolv"
697        }
698    ],
699    "rpa": [
700        "RPA10Model",
701        {
702            "K12": "Kab", "K13": "Kac", "K14": "Kad",
703            "K23": "Kbc", "K24": "Kbd", "K34": "Kcd",
704            "N1": "Na", "N2": "Nb", "N3": "Nc", "N4": "Nd",
705            "L1": "La", "L2": "Lb", "L3": "Lc", "L4": "Ld",
706            "v1": "va", "v2": "vb", "v3": "vc", "v4": "vd",
707            "b1": "ba", "b2": "bb", "b3": "bc", "b4": "bd",
708            "Phi1": "Phia", "Phi2": "Phib", "Phi3": "Phic", "Phi4": "Phid",
709            "case_num": "lcase_n"
710        }
711    ],
712    "sc_paracrystal": [
713        "SCCrystalModel",
714        {
715            "sld": "sldSph",
716            "sld_solvent": "sldSolv"
717        }
718    ],
719    "sphere": [
720        "SphereModel",
721        {
722            "sld": "sldSph",
723            "radius": "radius",
724            "sld_solvent": "sldSolv",
725            "M0:sld": "M0_sld_sph",
726            "mtheta:sld": "M_theta_sph",
727            "mphi:sld": "M_phi_sph",
728            "M0:sld_solvent": "M0_sld_solv",
729            "mtheta:sld_solvent": "M_theta_solv",
730            "mphi:sld_solvent": "M_phi_solv",
731            "up:frac_i": "Up_frac_i",
732            "up:frac_f": "Up_frac_f",
733            "up:angle": "Up_theta"
734        }
735    ],
736    "spherical_sld": [
737        "SphericalSLDModel",
[54bcd4a]738        # Be lazy and use a generator expression to define
739        #    sld1: sld_flat0, ...
740        #    thickness1: thick_flat0, ...
741        #    interface1: thick_inter0, ...
742        #    shape1: func_inter0, ...
743        #    nu1: nu_inter0, ...
744        # but override thickness1 => rad_cor0 and sld1 => sld_core0.
745        # Note: explicit key,value pairs given by **{...} override the
746        # keys from the gnerator expression ((k,v) for k,v in seq) when
747        # used as dict((generator), **{...})
[cbf4604]748        dict(((field_new+str(index+1), field_old+str(index))
749              for field_new, field_old in [("sld", "sld_flat"),
750                                           ("thickness", "thick_flat"),
751                                           ("interface", "thick_inter"),
752                                           ("shape", "func_inter"),
753                                           ("nu", "nu_inter"),]
754              for index in range(11)),
[54bcd4a]755             **{
[cbf4604]756                   "n_shells": "n_shells",
757                   "n_steps": "npts_inter",
758                   "sld_solvent": "sld_solv",
759                   "thickness1": "rad_core0",
760                   "sld1": "sld_core0",
761               })
[32e3c9b]762    ],
763    "squarewell": [
764        "SquareWellStructure",
765        {
[e85aa2e]766            "scale": "scale_factor",
[32e3c9b]767            "radius_effective": "effect_radius",
[e85aa2e]768            "wellwidth": "wellwidth",
769            "welldepth": "welldepth",
[32e3c9b]770        }
771    ],
772    "stacked_disks": [
773        "StackedDisksModel",
774        {
775            "phi": "axis_phi",
776            "sld_layer": "layer_sld",
777            "sld_core": "core_sld",
778            "theta": "axis_theta",
779            "sld_solvent": "solvent_sld",
[6831fa0]780            "n_stacking": "n_stacking",
781            "thick_layer": "layer_thick",
782            "thick_core": "core_thick",
[32e3c9b]783        }
784    ],
785    "star_polymer": [
786        "StarPolymer",
787        {
788            "arms": "arms",
789            "rg_squared": "R2"
790        }
791    ],
792    "stickyhardsphere": [
793        "StickyHSStructure",
794        {
[e85aa2e]795            "scale": "scale_factor",
[32e3c9b]796            "radius_effective": "effect_radius",
797        }
798    ],
799    "surface_fractal": [
800        "SurfaceFractalModel",
801        {
802            "cutoff_length": "co_length",
803            "radius": "radius",
[5b60eeb]804            "fractal_dim_surf": "surface_dim"
[32e3c9b]805        }
806    ],
807    "teubner_strey": [
808        "TeubnerStreyModel",
809        {
[1b49bf8]810            # Note: parameters are completely rewritten in convert.py
811            "volfraction_a": "volfraction_a",
812            "sld_a": "sld_a",
813            "sld_b": "sld_b",
814            "d": "d",
815            "xi": "xi",
[32e3c9b]816        }
817    ],
818    "triaxial_ellipsoid": [
819        "TriaxialEllipsoidModel",
820        {
821            "phi": "axis_phi",
[5b60eeb]822            "radius_equat_minor": "semi_axisA",
823            "radius_polar": "semi_axisC",
824            "radius_equat_major": "semi_axisB",
825            "sld_solvent": "sldSolv",
[32e3c9b]826            "psi": "axis_psi",
827            "sld": "sldEll",
828            "theta": "axis_theta"
829        }
830    ],
831    "two_lorentzian": [
[d2fb4af]832        "TwoLorentzian",
[32e3c9b]833        {
834            "lorentz_scale_1": "scale_1",
835            "lorentz_scale_2": "scale_2",
836            "lorentz_exp_1": "exponent_1",
837            "lorentz_exp_2": "exponent_2",
838            "lorentz_length_2": "length_2",
839            "lorentz_length_1": "length_1",
840            "background": "background"
[bb584b3]841        },
842        "TwoLorentzianModel",
[32e3c9b]843    ],
844    "two_power_law": [
[d2fb4af]845        "TwoPowerLaw",
[32e3c9b]846        {
847            "coefficent_1": "coef_A",
848            "power_2": "power2",
849            "power_1": "power1",
850            "background": "background",
851            "crossover": "qc"
[bb584b3]852        },
853        "TwoPowerLawModel",
[32e3c9b]854    ],
855    "unified_power_Rg": [
[d2fb4af]856        "UnifiedPowerRg",
[e1ea6b5]857        dict(((field_new+str(index), field_old+str(index))
858              for field_new, field_old in [("rg", "Rg"),
859                                           ("power", "power"),
860                                           ("G", "G"),
861                                           ("B", "B"),]
862              for index in range(11)),
863             **{
864                   "background": "background",
865                   "scale": "scale",
[bb584b3]866               }),
[32e3c9b]867        "UnifiedPowerRgModel",
868    ],
869    "vesicle": [
870        "VesicleModel",
871        {
872            "sld": "shell_sld",
873            "sld_solvent": "solv_sld"
874        }
875    ]
[4b4eee1]876    }
[32e3c9b]877}
Note: See TracBrowser for help on using the repository browser.