Changeset cfd4625 in sasmodels


Ignore:
Timestamp:
Feb 19, 2015 4:30:01 PM (10 years ago)
Author:
ajj
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.
Message:

Merge branch 'master' of https://github.com/SasView/sasmodels

Location:
sasmodels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    ra503bfd rfd1c792  
    1313        for variant in ("", "_pd", "_pd_n", "_pd_nsigma", "_pd_type"): 
    1414            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] 
    1617                del newpars[old+variant] 
    1718        # Sasview style parameter names 
    1819        for variant in (".width", ".nsigmas", ".type", ".npts"): 
    1920            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] 
    2123                del newpars[old+variant] 
    2224    return newpars 
  • sasmodels/models/broad_peak.py

    r6edb74a rfd1c792  
    113113oldpars = dict(porod_scale='scale_p', porod_exp='exponent_p',  
    114114        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  
    503503    fn = q_pars['fn'] 
    504504 
    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 
    516517 
    517518    # The volume parameters in the inner loop are used to call the volume() 
Note: See TracChangeset for help on using the changeset viewer.