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 previous versions of SasView and sasmodels. This is now |
---|
8 | versioned based on the version number of SasView. |
---|
9 | |
---|
10 | When any sasmodels parameter or model name is changed, this must be modified to |
---|
11 | account for that. |
---|
12 | |
---|
13 | Usage: |
---|
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 | } |
---|
24 | |
---|
25 | Any future parameter and model name changes can and should be given in this |
---|
26 | table for future compatibility. |
---|
27 | """ |
---|
28 | |
---|
29 | CONVERSION_TABLE = { |
---|
30 | (3,1,2) : { |
---|
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", |
---|
50 | "radius_bell": "rad_bell", |
---|
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", |
---|
104 | "radius_cap": "rad_cap", |
---|
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", |
---|
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", |
---|
139 | } |
---|
140 | ], |
---|
141 | "core_shell_bicelle": [ |
---|
142 | "CoreShellBicelleModel", |
---|
143 | { |
---|
144 | "phi": "axis_phi", |
---|
145 | "sld_core": "core_sld", |
---|
146 | "sld_rim": "rim_sld", |
---|
147 | "thick_face": "face_thick", |
---|
148 | "sld_solvent": "solvent_sld", |
---|
149 | "thick_rim": "rim_thick", |
---|
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 | ], |
---|
164 | "core_shell_ellipsoid:1": [ |
---|
165 | "CoreShellEllipsoidModel", |
---|
166 | { |
---|
167 | "sld_core": "sld_core", |
---|
168 | "sld_shell": "sld_shell", |
---|
169 | "sld_solvent": "sld_solvent", |
---|
170 | "radius_equat_core": "equat_core", |
---|
171 | "x_core": "polar_core", |
---|
172 | "thick_shell": "equat_shell", |
---|
173 | "x_polar_shell": "polar_shell", |
---|
174 | "theta": "axis_theta", |
---|
175 | "phi": "axis_phi", |
---|
176 | } |
---|
177 | ], |
---|
178 | "core_shell_ellipsoid": [ |
---|
179 | "CoreShellEllipsoidXTModel", |
---|
180 | { |
---|
181 | "sld_core": "sld_core", |
---|
182 | "sld_shell": "sld_shell", |
---|
183 | "sld_solvent": "sld_solvent", |
---|
184 | "radius_equat_core": "equat_core", |
---|
185 | "thick_shell": "T_shell", |
---|
186 | "x_core": "X_core", |
---|
187 | "x_polar_shell": "XpolarShell", |
---|
188 | "theta": "axis_theta", |
---|
189 | "phi": "axis_phi", |
---|
190 | } |
---|
191 | ], |
---|
192 | "core_shell_parallelepiped": [ |
---|
193 | "CSParallelepipedModel", |
---|
194 | { |
---|
195 | "sld_core": "sld_pcore", |
---|
196 | "sld_a": "sld_rimA", |
---|
197 | "sld_b": "sld_rimB", |
---|
198 | "sld_c": "sld_rimC", |
---|
199 | "sld_solvent": "sld_solv", |
---|
200 | "length_a": "shortA", |
---|
201 | "length_b": "midB", |
---|
202 | "length_c": "longC", |
---|
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", |
---|
209 | } |
---|
210 | ], |
---|
211 | "core_shell_sphere": [ |
---|
212 | "CoreShellModel", |
---|
213 | { |
---|
214 | "sld_core": "core_sld", |
---|
215 | "sld_shell": "shell_sld", |
---|
216 | "sld_solvent": "solvent_sld", |
---|
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" |
---|
229 | } |
---|
230 | ], |
---|
231 | "correlation_length": [ |
---|
232 | "CorrLength", |
---|
233 | { |
---|
234 | "porod_scale": "scale_p", |
---|
235 | "lorentz_scale": "scale_l", |
---|
236 | "porod_exp": "exponent_p", |
---|
237 | "lorentz_exp": "exponent_l", |
---|
238 | "cor_length": "length_l" |
---|
239 | }, |
---|
240 | "CorrLengthModel" |
---|
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 | { |
---|
263 | "cor_length": "length" |
---|
264 | } |
---|
265 | ], |
---|
266 | "ellipsoid": [ |
---|
267 | "EllipsoidModel", |
---|
268 | { |
---|
269 | "phi": "axis_phi", |
---|
270 | "radius_equatorial": "radius_b", |
---|
271 | "sld": "sldEll", |
---|
272 | "theta": "axis_theta", |
---|
273 | "radius_polar": "radius_a", |
---|
274 | "sld_solvent": "sldSolv" |
---|
275 | } |
---|
276 | ], |
---|
277 | "elliptical_cylinder": [ |
---|
278 | "EllipticalCylinderModel", |
---|
279 | { |
---|
280 | "axis_ratio": "r_ratio", |
---|
281 | "radius_minor": "r_minor", |
---|
282 | "sld": "sldCyl", |
---|
283 | "sld_solvent": "sldSolv", |
---|
284 | "theta": "cyl_theta", |
---|
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": [ |
---|
321 | "FractalCoreShell", |
---|
322 | { |
---|
323 | "sld_core": "core_sld", |
---|
324 | "sld_shell": "shell_sld", |
---|
325 | "sld_solvent": "solvent_sld", |
---|
326 | "radius": "radius", |
---|
327 | "thickness": "thickness", |
---|
328 | "fractal_dim": "frac_dim", |
---|
329 | "cor_length": "cor_length", |
---|
330 | "volfraction": "volfraction", |
---|
331 | }, |
---|
332 | "FractalCoreShellModel" |
---|
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": [ |
---|
344 | "GaussLorentzGel", |
---|
345 | { |
---|
346 | "gauss_scale": "scale_g", |
---|
347 | "cor_length_dynamic": "dyn_colength", |
---|
348 | "cor_length_static": "stat_colength", |
---|
349 | "background": "background", |
---|
350 | "lorentz_scale": "scale_l" |
---|
351 | }, |
---|
352 | "GaussLorentzGelModel" |
---|
353 | ], |
---|
354 | "gaussian_peak": [ |
---|
355 | "Peak Gauss Model", |
---|
356 | { |
---|
357 | "peak_pos": "q0", |
---|
358 | "sigma": "B", |
---|
359 | }, |
---|
360 | "PeakGaussModel", |
---|
361 | ], |
---|
362 | "gel_fit": [ |
---|
363 | "GelFitModel", |
---|
364 | { |
---|
365 | "rg": "radius", |
---|
366 | "lorentz_scale": "lScale", |
---|
367 | "guinier_scale": "gScale", |
---|
368 | "fractal_dim": "FractalExp", |
---|
369 | "cor_length": "zeta", |
---|
370 | } |
---|
371 | ], |
---|
372 | "guinier": [ |
---|
373 | "Guinier", |
---|
374 | { |
---|
375 | "rg": "rg" |
---|
376 | }, |
---|
377 | "GuinierModel", |
---|
378 | ], |
---|
379 | "guinier_porod": [ |
---|
380 | "GuinierPorod", |
---|
381 | { |
---|
382 | "s": "dim", |
---|
383 | "rg": "rg", |
---|
384 | "porod_exp": "m", |
---|
385 | "scale": "scale", |
---|
386 | "background": "background" |
---|
387 | }, |
---|
388 | "GuinierPorodModel", |
---|
389 | ], |
---|
390 | "hardsphere": [ |
---|
391 | "HardsphereStructure", |
---|
392 | { |
---|
393 | "scale": "scale_factor", |
---|
394 | "radius_effective": "effect_radius", |
---|
395 | } |
---|
396 | ], |
---|
397 | "hayter_msa": [ |
---|
398 | "HayterMSAStructure", |
---|
399 | { |
---|
400 | "scale": "scale_factor", |
---|
401 | "radius_effective": "effect_radius", |
---|
402 | "volfraction": "volfraction", |
---|
403 | "charge": "charge", |
---|
404 | "temperature": "temperature", |
---|
405 | "concentration_salt": "saltconc", |
---|
406 | "dielectconst": "dielectconst", |
---|
407 | } |
---|
408 | ], |
---|
409 | "hollow_cylinder": [ |
---|
410 | "HollowCylinderModel", |
---|
411 | { |
---|
412 | "sld": "sldCyl", |
---|
413 | "sld_solvent": "sldSolv", |
---|
414 | "radius": "core_radius", |
---|
415 | "thickness": "radius", |
---|
416 | "length": "length", |
---|
417 | "theta": "axis_theta", |
---|
418 | "phi": "axis_phi", |
---|
419 | } |
---|
420 | ], |
---|
421 | "hollow_rectangular_prism": [ |
---|
422 | "RectangularHollowPrismModel", |
---|
423 | { |
---|
424 | "sld": "sldPipe", |
---|
425 | "sld_solvent": "sldSolv", |
---|
426 | "length_a": "short_side", |
---|
427 | "b2a_ratio": "b2a_ratio", |
---|
428 | "c2a_ratio": "c2a_ratio", |
---|
429 | "thickness": "thickness", |
---|
430 | } |
---|
431 | ], |
---|
432 | "hollow_rectangular_prism_thin_walls": [ |
---|
433 | "RectangularHollowPrismInfThinWallsModel", |
---|
434 | { |
---|
435 | "sld": "sldPipe", |
---|
436 | "sld_solvent": "sldSolv", |
---|
437 | "length_a": "short_side", |
---|
438 | "b2a_ratio": "b2a_ratio", |
---|
439 | "c2a_ratio": "c2a_ratio", |
---|
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", |
---|
456 | "length_tail": "t_length", |
---|
457 | "length_head": "h_thickness" |
---|
458 | } |
---|
459 | ], |
---|
460 | "lamellar_hg_stack_caille": [ |
---|
461 | "LamellarPSHGModel", |
---|
462 | { |
---|
463 | "sld": "sld_tail", |
---|
464 | "sld_head": "sld_head", |
---|
465 | "sld_solvent": "sld_solvent", |
---|
466 | "length_tail": "deltaT", |
---|
467 | "length_head": "deltaH", |
---|
468 | "d_spacing": "spacing", |
---|
469 | "Caille_parameter": "caille", |
---|
470 | "Nlayers": "n_plates", |
---|
471 | } |
---|
472 | ], |
---|
473 | "lamellar_stack_caille": [ |
---|
474 | "LamellarPSModel", |
---|
475 | { |
---|
476 | "sld": "sld_bi", |
---|
477 | "sld_solvent": "sld_sol", |
---|
478 | "thickness": "delta", |
---|
479 | "d_spacing": "spacing", |
---|
480 | "Caille_parameter": "caille", |
---|
481 | "Nlayers": "n_plates", |
---|
482 | } |
---|
483 | ], |
---|
484 | "lamellar_stack_paracrystal": [ |
---|
485 | "LamellarPCrystalModel", |
---|
486 | { |
---|
487 | "sld": "sld_layer", |
---|
488 | "sld_solvent": "sld_solvent", |
---|
489 | "thickness": "thickness", |
---|
490 | "d_spacing": "spacing", |
---|
491 | "sigma_d": "pd_spacing", |
---|
492 | "Nlayers": "Nlayers", |
---|
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": [ |
---|
513 | "Lorentz", |
---|
514 | { |
---|
515 | "cor_length": "length" |
---|
516 | }, |
---|
517 | "LorentzModel", |
---|
518 | ], |
---|
519 | "mass_fractal": [ |
---|
520 | "MassFractalModel", |
---|
521 | { |
---|
522 | "cutoff_length": "co_length", |
---|
523 | "radius": "radius", |
---|
524 | "fractal_dim_mass": "mass_dim" |
---|
525 | } |
---|
526 | ], |
---|
527 | "mass_surface_fractal": [ |
---|
528 | "MassSurfaceFractal", |
---|
529 | { |
---|
530 | "rg_cluster": "cluster_rg", |
---|
531 | "fractal_dim_mass": "mass_dim", |
---|
532 | "radius": "radius", |
---|
533 | "fractal_dim_surf": "surface_dim", |
---|
534 | "rg_primary": "primary_rg" |
---|
535 | } |
---|
536 | ], |
---|
537 | "mono_gauss_coil": [ |
---|
538 | "Debye", |
---|
539 | { |
---|
540 | "rg": "rg", |
---|
541 | "i_zero": "scale", |
---|
542 | "background": "background", |
---|
543 | }, |
---|
544 | "DebyeModel", |
---|
545 | ], |
---|
546 | "multilayer_vesicle": [ |
---|
547 | "MultiShellModel", |
---|
548 | { |
---|
549 | "radius": "core_radius", |
---|
550 | "sld_solvent": "core_sld", |
---|
551 | "n_pairs": "n_pairs", |
---|
552 | "thick_shell": "s_thickness", |
---|
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", |
---|
563 | "radius_core": "rad_core0", |
---|
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", |
---|
576 | "length_a": "short_a", |
---|
577 | "length_b": "short_b", |
---|
578 | "sld": "sldPipe", |
---|
579 | "theta": "parallel_theta", |
---|
580 | "length_c": "long_c", |
---|
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", |
---|
590 | } |
---|
591 | ], |
---|
592 | "peak_lorentz": [ |
---|
593 | "Peak Lorentz Model", |
---|
594 | { |
---|
595 | "peak_pos": "q0", |
---|
596 | "peak_hwhm": "B" |
---|
597 | }, |
---|
598 | "PeakLorentzModel", |
---|
599 | ], |
---|
600 | "pearl_necklace": [ |
---|
601 | "PearlNecklaceModel", |
---|
602 | { |
---|
603 | "scale": "scale", |
---|
604 | "thick_string": "thick_string", |
---|
605 | "sld_string": "sld_string", |
---|
606 | "sld_solvent": "sld_solv", |
---|
607 | "edge_sep": "edge_separation", |
---|
608 | "num_pearls": "num_pearls", |
---|
609 | "radius": "radius", |
---|
610 | "background": "background", |
---|
611 | "sld": "sld_pearl" |
---|
612 | } |
---|
613 | ], |
---|
614 | "poly_gauss_coil": [ |
---|
615 | "Poly_GaussCoil", |
---|
616 | { |
---|
617 | "rg": "rg", |
---|
618 | "polydispersity": "poly_m", |
---|
619 | "i_zero": "scale", |
---|
620 | "background": "background", |
---|
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", |
---|
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", |
---|
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", |
---|
666 | "sld_solvent": "sld_solvent", |
---|
667 | "thickness": "thickness", |
---|
668 | "beta": "beta", |
---|
669 | "radius": "radius", |
---|
670 | "background": "background", |
---|
671 | "alpha": "alpha", |
---|
672 | "sld": "sld_pringle" |
---|
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", |
---|
693 | "length_a": "short_side", |
---|
694 | "b2a_ratio": "b2a_ratio", |
---|
695 | "c2a_ratio": "c2a_ratio", |
---|
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", |
---|
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), **{...}) |
---|
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)), |
---|
755 | **{ |
---|
756 | "n_shells": "n_shells", |
---|
757 | "n_steps": "npts_inter", |
---|
758 | "sld_solvent": "sld_solv", |
---|
759 | "thickness1": "rad_core0", |
---|
760 | "sld1": "sld_core0", |
---|
761 | }) |
---|
762 | ], |
---|
763 | "squarewell": [ |
---|
764 | "SquareWellStructure", |
---|
765 | { |
---|
766 | "scale": "scale_factor", |
---|
767 | "radius_effective": "effect_radius", |
---|
768 | "wellwidth": "wellwidth", |
---|
769 | "welldepth": "welldepth", |
---|
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", |
---|
780 | "n_stacking": "n_stacking", |
---|
781 | "thick_layer": "layer_thick", |
---|
782 | "thick_core": "core_thick", |
---|
783 | } |
---|
784 | ], |
---|
785 | "star_polymer": [ |
---|
786 | "StarPolymer", |
---|
787 | { |
---|
788 | "arms": "arms", |
---|
789 | "rg_squared": "R2" |
---|
790 | } |
---|
791 | ], |
---|
792 | "stickyhardsphere": [ |
---|
793 | "StickyHSStructure", |
---|
794 | { |
---|
795 | "scale": "scale_factor", |
---|
796 | "radius_effective": "effect_radius", |
---|
797 | } |
---|
798 | ], |
---|
799 | "surface_fractal": [ |
---|
800 | "SurfaceFractalModel", |
---|
801 | { |
---|
802 | "cutoff_length": "co_length", |
---|
803 | "radius": "radius", |
---|
804 | "fractal_dim_surf": "surface_dim" |
---|
805 | } |
---|
806 | ], |
---|
807 | "teubner_strey": [ |
---|
808 | "TeubnerStreyModel", |
---|
809 | { |
---|
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", |
---|
816 | } |
---|
817 | ], |
---|
818 | "triaxial_ellipsoid": [ |
---|
819 | "TriaxialEllipsoidModel", |
---|
820 | { |
---|
821 | "phi": "axis_phi", |
---|
822 | "radius_equat_minor": "semi_axisA", |
---|
823 | "radius_polar": "semi_axisC", |
---|
824 | "radius_equat_major": "semi_axisB", |
---|
825 | "sld_solvent": "sldSolv", |
---|
826 | "psi": "axis_psi", |
---|
827 | "sld": "sldEll", |
---|
828 | "theta": "axis_theta" |
---|
829 | } |
---|
830 | ], |
---|
831 | "two_lorentzian": [ |
---|
832 | "TwoLorentzian", |
---|
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" |
---|
841 | }, |
---|
842 | "TwoLorentzianModel", |
---|
843 | ], |
---|
844 | "two_power_law": [ |
---|
845 | "TwoPowerLaw", |
---|
846 | { |
---|
847 | "coefficent_1": "coef_A", |
---|
848 | "power_2": "power2", |
---|
849 | "power_1": "power1", |
---|
850 | "background": "background", |
---|
851 | "crossover": "qc" |
---|
852 | }, |
---|
853 | "TwoPowerLawModel", |
---|
854 | ], |
---|
855 | "unified_power_Rg": [ |
---|
856 | "UnifiedPowerRg", |
---|
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", |
---|
866 | }), |
---|
867 | "UnifiedPowerRgModel", |
---|
868 | ], |
---|
869 | "vesicle": [ |
---|
870 | "VesicleModel", |
---|
871 | { |
---|
872 | "sld": "shell_sld", |
---|
873 | "sld_solvent": "solv_sld" |
---|
874 | } |
---|
875 | ] |
---|
876 | } |
---|
877 | } |
---|