Changeset d2fb4af in sasmodels
- Timestamp:
- Nov 22, 2016 8:43:16 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 077666e
- Parents:
- f80f334
- Location:
- sasmodels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/conversion_table.py
rfa6d6fc rd2fb4af 211 211 ], 212 212 "correlation_length": [ 213 "CorrLength Model",213 "CorrLength", 214 214 { 215 215 "porod_scale": "scale_p", … … 299 299 ], 300 300 "fractal_core_shell": [ 301 "FractalCoreShell Model",301 "FractalCoreShell", 302 302 { 303 303 "sld_core": "core_sld", … … 321 321 ], 322 322 "gauss_lorentz_gel": [ 323 "GaussLorentzGel Model",323 "GaussLorentzGel", 324 324 { 325 325 "gauss_scale": "scale_g", … … 331 331 ], 332 332 "gaussian_peak": [ 333 "Peak GaussModel",333 "Peak Gauss Model", 334 334 { 335 335 "peak_pos": "q0", … … 348 348 ], 349 349 "guinier": [ 350 "Guinier Model",350 "Guinier", 351 351 { 352 352 "rg": "rg" … … 354 354 ], 355 355 "guinier_porod": [ 356 "GuinierPorod Model",356 "GuinierPorod", 357 357 { 358 358 "s": "dim", … … 486 486 ], 487 487 "lorentz": [ 488 "Lorentz Model",488 "Lorentz", 489 489 { 490 490 "cor_length": "length" … … 510 510 ], 511 511 "mono_gauss_coil": [ 512 "Debye Model",512 "Debye", 513 513 { 514 514 "rg": "rg", … … 564 564 ], 565 565 "peak_lorentz": [ 566 "Peak LorentzModel",566 "Peak Lorentz Model", 567 567 { 568 568 "peak_pos": "q0", … … 802 802 ], 803 803 "two_lorentzian": [ 804 "TwoLorentzian Model",804 "TwoLorentzian", 805 805 { 806 806 "lorentz_scale_1": "scale_1", … … 814 814 ], 815 815 "two_power_law": [ 816 "TwoPowerLaw Model",816 "TwoPowerLaw", 817 817 { 818 818 "coefficent_1": "coef_A", … … 824 824 ], 825 825 "unified_power_Rg": [ 826 "UnifiedPowerRg Model",826 "UnifiedPowerRg", 827 827 { 828 828 } -
sasmodels/convert.py
rf80f334 rd2fb4af 64 64 if id.startswith('M0:'): 65 65 return True 66 if id.startswith('volfraction') or id.startswith('radius_effective'):67 return False68 66 if '_pd' in id or '.' in id: 69 67 return False … … 75 73 if p.id == id: 76 74 return p.type == 'sld' 77 r aise ValueError("unknown parameter %r in conversion"%id)75 return False 78 76 79 77 def _rescale_sld(model_info, pars, scale): … … 137 135 i += 1 138 136 break 139 elif re.search("background", key_par) or re.search("scale", key_par):137 elif "background" == key_par or "scale" == key_par: 140 138 new_pars[key_par] = value_par 141 139 i += 1 … … 236 234 oldpars[p + ".upper"] /= 1e-13 237 235 elif name == 'spherical_sld': 238 oldpars["CONTROL"] += 1 236 oldpars["CONTROL"] = 0 237 i = 0 238 while "nu_inter" + str(i) in oldpars: 239 oldpars["CONTROL"] += 1 240 i += 1 239 241 elif name == 'teubner_strey': 240 242 # basically undoing the entire Teubner-Strey calculations here.
Note: See TracChangeset
for help on using the changeset viewer.