Changeset 71bf6de in sasmodels for sasmodels/mixture.py


Ignore:
Timestamp:
Jan 12, 2018 10:44:30 AM (6 years ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
ffc2a61, 7624dd3
Parents:
791281c
Message:

First draft of solution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/mixture.py

    r2d81cfe r71bf6de  
    9494            # If model is a sum model, each constituent model gets its own scale parameter 
    9595            scale_prefix = prefix 
    96             if prefix == '' and part.operation == '*': 
     96            if prefix == '' and hasattr(part,"operation") and part.operation == '*': 
    9797                # `part` is a composition product model. Find the prefixes of 
    9898                # it's parameters to form a new prefix for the scale, eg: 
Note: See TracChangeset for help on using the changeset viewer.