Changeset e85aa2e in sasmodels
- Timestamp:
- Nov 2, 2016 7:40:32 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:
- 037aa3d
- Parents:
- fef353f
- Location:
- sasmodels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/conversion_table.py
raea515c re85aa2e 366 366 "HardsphereStructure", 367 367 { 368 " radius_effective_pd": "effect_radius_pd",368 "scale": "scale_factor", 369 369 "radius_effective": "effect_radius", 370 "radius_effective_pd_n": "effect_radius_pd_n"371 370 } 372 371 ], … … 374 373 "HayterMSAStructure", 375 374 { 375 "scale": "scale_factor", 376 376 "radius_effective": "effect_radius", 377 377 "volfraction": "volfraction", … … 380 380 "concentration_salt": "saltconc", 381 381 "dielectconst": "dielectconst", 382 #"radius_effective_pd_n": "effect_radius_pd_n",383 #"radius_effective_pd": "effect_radius_pd",384 382 } 385 383 ], … … 738 736 "SquareWellStructure", 739 737 { 740 " radius_effective_pd": "effect_radius_pd",738 "scale": "scale_factor", 741 739 "radius_effective": "effect_radius", 742 "radius_effective_pd_n": "effect_radius_pd_n" 740 "wellwidth": "wellwidth", 741 "welldepth": "welldepth", 743 742 } 744 743 ], … … 766 765 "StickyHSStructure", 767 766 { 768 " radius_effective_pd": "effect_radius_pd",767 "scale": "scale_factor", 769 768 "radius_effective": "effect_radius", 770 "radius_effective_pd_n": "effect_radius_pd_n"771 769 } 772 770 ], -
sasmodels/convert.py
r999c87f re85aa2e 161 161 oldpars['rimB.width'] = 0.0 162 162 oldpars['rimC.width'] = 0.0 163 elif name == 'core_shell_ellipsoid:1': 163 164 elif name == 'hollow_cylinder': 164 165 # now uses radius and thickness … … 228 229 if newname is None: 229 230 return name, pars 230 if newname.endswith(':1'):231 if ':' in newname: # core_shell_ellipsoid:1 231 232 model_info = load_model_info(newname[:-2]) 232 233 # Know that the table exists and isn't multiplicity so grab it directly 234 # Can't use _get_translation_table since that will return the 'bare' 235 # version. 233 236 translation = CONVERSION_TABLE[newname] 234 237 else: … … 305 308 composition_type, parts = model_info.composition 306 309 if composition_type == 'product': 307 translation = {'scale':'scale_factor'}308 translation.update(_get_translation_table(parts[0]))310 translation = _get_translation_table(parts[0]) 311 # structure factor models include scale:scale_factor mapping 309 312 translation.update(_get_translation_table(parts[1])) 310 313 else:
Note: See TracChangeset
for help on using the changeset viewer.