Changeset 78afdec in sasmodels for sasmodels/convert.py


Ignore:
Timestamp:
Jan 18, 2016 2:48:37 AM (8 years ago)
Author:
piotr
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:
23d3b41
Parents:
421e55c (diff), e66c9f9 (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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    r55a8316 r78afdec  
    112112        _remove_pd(oldpars, 'num_pearls', name) 
    113113        _remove_pd(oldpars, 'thick_string', name) 
     114    elif name == 'rpa': 
     115        # convert scattering lengths from femtometers to centimeters 
     116        for p in "La", "Lb", "Lc", "Ld": 
     117            if p in oldpars: oldpars[p] *= 1e-13 
    114118 
    115119    return oldname, oldpars 
     
    128132        pars['string_thickness_pd_n'] = 0 
    129133        pars['number_of_pearls_pd_n'] = 0 
     134    elif name == 'rpa': 
     135        pars['case_num'] = int(pars['case_num']) 
    130136    elif getattr(model_definition, 'category', None) == 'structure-factor': 
    131137        pars['scale'], pars['background'] = 1, 0 
Note: See TracChangeset for help on using the changeset viewer.