Changeset f786ff3 in sasmodels


Ignore:
Timestamp:
Feb 16, 2015 2:19:05 AM (10 years ago)
Author:
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:
250fa25
Parents:
b3f6bc3
Message:

rename modules for clarity

Files:
4 edited
3 moved

Legend:

Unmodified
Added
Removed
  • compare.py

    r87c722e rf786ff3  
    88 
    99from sasmodels.bumps_model import BumpsModel, plot_data, tic 
    10 from sasmodels import gpu, dll 
     10from sasmodels import kernelcl, kerneldll 
    1111from sasmodels.convert import revert_model 
    1212 
     
    4242    sasmodels = __import__('sasmodels.models.'+modelname) 
    4343    module = getattr(sasmodels.models, modelname, None) 
    44     kernel = gpu.load_model(module, dtype=dtype) 
     44    kernel = kernelcl.load_model(module, dtype=dtype) 
    4545    return kernel 
    4646 
     
    4848    sasmodels = __import__('sasmodels.models.'+modelname) 
    4949    module = getattr(sasmodels.models, modelname, None) 
    50     kernel = dll.load_model(module, dtype=dtype) 
     50    kernel = kerneldll.load_model(module, dtype=dtype) 
    5151    return kernel 
    5252 
  • compare_many.py

    r34756fd rf786ff3  
    55import numpy as np 
    66 
    7 from sasmodels.gpu import environment 
     7from sasmodels.kernelcl import environment 
    88from compare import (MODELS, randomize_model, suppress_pd, eval_sasview, 
    99                     eval_opencl, eval_ctypes, make_data) 
  • sasmodels/bumps_model.py

    r87c722e rf786ff3  
    1414 
    1515try: 
    16     from .gpu import load_model as _loader 
     16    from .kernelcl import load_model as _loader 
    1717except ImportError,exc: 
    1818    import warnings 
    1919    warnings.warn(str(exc)) 
    2020    warnings.warn("OpenCL not available --- using ctypes instead") 
    21     from .dll import load_model as _loader 
     21    from .kerneldll import load_model as _loader 
    2222 
    2323def load_model(modelname, dtype='single'): 
  • sasmodels/kernelcl.py

    rb3f6bc3 rf786ff3  
    2929 
    3030from . import generate 
    31 from .pykernel import PyInput, PyKernel 
     31from .kernelpy import PyInput, PyKernel 
    3232 
    3333F64_DEFS = """\ 
  • sasmodels/kerneldll.py

    rb3f6bc3 rf786ff3  
    1111 
    1212from . import generate 
    13 from .pykernel import PyInput, PyKernel 
     13from .kernelpy import PyInput, PyKernel 
    1414 
    1515from .generate import F32, F64 
  • sasmodels/sasview_model.py

    r87c722e rf786ff3  
    2525 
    2626try: 
    27     from .gpu import load_model 
     27    from .kernelcl import load_model 
    2828except ImportError,exc: 
    2929    warnings.warn(str(exc)) 
    3030    warnings.warn("OpenCL not available --- using ctypes instead") 
    31     from .dll import load_model 
     31    from .kerneldll import load_model 
    3232 
    3333 
Note: See TracChangeset for help on using the changeset viewer.