Changeset 8d06779 in sasmodels


Ignore:
Timestamp:
Nov 15, 2016 10:35:49 AM (8 years ago)
Author:
krzywon
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
47fafe9
Parents:
88fafac
Message:

#795: Properly check for parameters during conversion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    r88fafac r8d06779  
    220220        if 'ndensity' in oldpars: 
    221221            oldpars['ndensity'] /= 1e15 
     222        if 'ndensity.lower' in oldpars: 
    222223            oldpars['ndensity.lower'] /= 1e15 
     224        if 'ndensity.upper' in oldpars: 
    223225            oldpars['ndensity.upper'] /= 1e15 
    224226    elif name == 'rpa': 
     
    227229            if p in oldpars: 
    228230                oldpars[p] /= 1e-13 
     231            if p + ".lower" in oldpars: 
    229232                oldpars[p + ".lower"] /= 1e-13 
     233            if p + ".upper" in oldpars: 
    230234                oldpars[p + ".upper"] /= 1e-13 
    231235    elif name == 'spherical_sld': 
Note: See TracChangeset for help on using the changeset viewer.