Changeset d2fb4af in sasmodels for sasmodels/convert.py
- Timestamp:
- Nov 22, 2016 8:43:16 AM (7 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.