Changeset 99f446a in sasmodels


Ignore:
Timestamp:
Aug 5, 2016 6:06:25 PM (6 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:
baa79c2
Parents:
b32dafd
Message:

fix dispersion distribution selector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    rb32dafd r99f446a  
    592592            # new dispersers in the set_dispersion call and create a new 
    593593            # one instead of trying to assign parameters. 
    594             disperser = weights.dispersers[dispersion.__class__.__name__] 
    595             dispersion = weights.MODELS[disperser]() 
     594            dispersion = weights.MODELS[dispersion.type]() 
    596595            self.dispersion[parameter] = dispersion.get_pars() 
    597596        else: 
Note: See TracChangeset for help on using the changeset viewer.