Changeset cfd4625 in sasmodels
- Timestamp:
- Feb 19, 2015 4:30:01 PM (10 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 3750279
- Parents:
- 8221f1c (diff), fd1c792 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- sasmodels
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/convert.py
ra503bfd rfd1c792 13 13 for variant in ("", "_pd", "_pd_n", "_pd_nsigma", "_pd_type"): 14 14 if old+variant in newpars: 15 newpars[new+variant] = pars[old+variant] 15 if new is not None: 16 newpars[new+variant] = pars[old+variant] 16 17 del newpars[old+variant] 17 18 # Sasview style parameter names 18 19 for variant in (".width", ".nsigmas", ".type", ".npts"): 19 20 if old+variant in newpars: 20 newpars[new+variant] = pars[old+variant] 21 if new is not None: 22 newpars[new+variant] = pars[old+variant] 21 23 del newpars[old+variant] 22 24 return newpars -
sasmodels/models/broad_peak.py
r6edb74a rfd1c792 113 113 oldpars = dict(porod_scale='scale_p', porod_exp='exponent_p', 114 114 lorentz_scale='scale_l', lorentz_length='length_l', peak_pos='q_peak', 115 lorentz_exp='exponent_l' )115 lorentz_exp='exponent_l', scale=None) -
sasmodels/generate.py
rae7b97b r12076cf 503 503 fn = q_pars['fn'] 504 504 505 # Build polydispersity loops 506 depth = 4 507 offset = "" 508 loop_head = [] 509 loop_end = [] 510 for name in pd_pars: 511 subst = { 'name': name, 'offset': offset } 512 loop_head.append(indent(LOOP_OPEN%subst, depth)) 513 loop_end.insert(0, (" "*depth) + "}") 514 offset += '+N'+name 515 depth += 2 505 if len(pd_pars) > 0: 506 # Build polydispersity loops 507 depth = 4 508 offset = "" 509 loop_head = [] 510 loop_end = [] 511 for name in pd_pars: 512 subst = { 'name': name, 'offset': offset } 513 loop_head.append(indent(LOOP_OPEN%subst, depth)) 514 loop_end.insert(0, (" "*depth) + "}") 515 offset += '+N'+name 516 depth += 2 516 517 517 518 # The volume parameters in the inner loop are used to call the volume()
Note: See TracChangeset
for help on using the changeset viewer.