Changeset 1e13e35 in sasmodels


Ignore:
Timestamp:
Dec 5, 2016 10:39:59 AM (8 years ago)
Author:
GitHub <noreply@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c8902ac
Parents:
d6f60c3 (diff), ccd5f01 (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.
git-author:
Jeff Krzywon <krzywon@…> (12/05/16 10:39:59)
git-committer:
GitHub <noreply@…> (12/05/16 10:39:59)
Message:

Merge pull request #13 from SasView?/ticket-816

Ticket 816

Location:
sasmodels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r8c65a33 rfe25eda  
    10631063    # Evaluate preset parameter expressions 
    10641064    context = MATH.copy() 
     1065    context['np'] = np 
    10651066    context.update(pars) 
    10661067    context.update((k,v) for k,v in presets.items() if isinstance(v, float)) 
  • sasmodels/details.py

    r6dc78e4 rccd5f01  
    230230    npars = kernel.info.parameters.npars 
    231231    nvalues = kernel.info.parameters.nvalues 
    232     scalars = [v[0][0] for v in pairs] 
     232    scalars = [(v[0] if len(v) else np.NaN) for v, w in pairs] 
    233233    values, weights = zip(*pairs[2:npars+2]) if npars else ((),()) 
    234234    length = np.array([len(w) for w in weights]) 
Note: See TracChangeset for help on using the changeset viewer.