Changeset 6dc78e4 in sasmodels for sasmodels/convert.py


Ignore:
Timestamp:
Aug 17, 2016 3:12:51 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
deb854f, 300a2f7
Parents:
6b7e2f7
Message:

re-enable structure factor product

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    r40a87fa r6dc78e4  
    180180        composition_type, parts = model_info.composition 
    181181        if composition_type == 'product': 
    182             oldpars = {'scale':'scale_factor'} 
    183             oldpars.update(_get_old_pars(parts[0])) 
    184             oldpars.update(_get_old_pars(parts[1])) 
     182            translation = {'scale':'scale_factor'} 
     183            translation.update(_get_translation_table(parts[0])) 
     184            translation.update(_get_translation_table(parts[1])) 
    185185        else: 
    186186            raise NotImplementedError("cannot convert to sasview sum") 
    187187    else: 
    188188        translation = _get_translation_table(model_info) 
    189         oldpars = _revert_pars(_unscale_sld(model_info, pars), translation) 
    190         oldpars = _trim_vectors(model_info, pars, oldpars) 
     189    oldpars = _revert_pars(_unscale_sld(model_info, pars), translation) 
     190    oldpars = _trim_vectors(model_info, pars, oldpars) 
    191191 
    192192    # Make sure the control parameter is an integer 
Note: See TracChangeset for help on using the changeset viewer.