Changeset 98f60fc in sasmodels


Ignore:
Timestamp:
Mar 30, 2016 4:30:35 PM (9 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:
b7172bb
Parents:
364d8f7
Message:

cruft to support meshgrid on one vector; should fix sphere test

Location:
sasmodels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/core.py

    re79f0a5 r98f60fc  
    22Core model handling routines. 
    33""" 
     4__all__ = [ 
     5    "list_models", "load_model_info", "precompile_dll", 
     6    "build_model", "make_kernel", "call_kernel", "call_ER_VR", 
     7    ] 
     8 
    49 
    510from os.path import basename, dirname, join as joinpath, splitext 
     
    2429    HAVE_OPENCL = False 
    2530 
    26 __all__ = [ 
    27     "list_models", "load_model_info", "precompile_dll", 
    28     "build_model", "make_kernel", "call_kernel", "call_ER_VR", 
    29 ] 
     31try: 
     32    np.meshgrid([]) 
     33    meshgrid = np.meshgrid 
     34except ValueError: 
     35    # CRUFT: np.meshgrid requires multiple vectors 
     36    def meshgrid(*args): 
     37        if len(args) > 1: 
     38            return np.meshgrid(*args) 
     39        else: 
     40            return [np.asarray(v) for v in args] 
     41 
    3042 
    3143def list_models(): 
  • sasmodels/models/raspberry.py

    r2c1bbcdd r98f60fc  
    129129            Ref: J. coll. inter. sci. (2010) vol. 343 (1) pp. 36-41.""" 
    130130category = "shape:sphere" 
     131#single = False 
    131132 
    132133#             [ "name", "units", default, [lower, upper], "type", "description"], 
Note: See TracChangeset for help on using the changeset viewer.