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