Changeset fe25eda in sasmodels for sasmodels/compare.py


Ignore:
Timestamp:
Dec 2, 2016 1:55:15 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
ccd5f01
Parents:
d6f60c3
Message:

add numpy as np to the context for sascomp parameter expressions

File:
1 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)) 
Note: See TracChangeset for help on using the changeset viewer.