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