Changeset 56b2687 in sasmodels for sasmodels/core.py


Ignore:
Timestamp:
Jul 14, 2016 1:35:58 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:
98ba1fc
Parents:
61f8638 (diff), fa800e72 (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.
Message:

Merge branch 'master' into polydisp

Conflicts:

README.rst
sasmodels/core.py
sasmodels/data.py
sasmodels/generate.py
sasmodels/kernelcl.py
sasmodels/kerneldll.py
sasmodels/sasview_model.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/core.py

    r7891a2a r56b2687  
    3434    pass 
    3535 
     36try: 
     37    np.meshgrid([]) 
     38    meshgrid = np.meshgrid 
     39except Exception: 
     40    # CRUFT: np.meshgrid requires multiple vectors 
     41    def meshgrid(*args): 
     42        if len(args) > 1: 
     43            return np.meshgrid(*args) 
     44        else: 
     45            return [np.asarray(v) for v in args] 
    3646 
    3747# TODO: refactor composite model support 
Note: See TracChangeset for help on using the changeset viewer.