Changeset af1d68c in sasmodels


Ignore:
Timestamp:
Mar 13, 2015 4:07:12 PM (10 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:
d9633b1
Parents:
aa4946b
Message:

remove obsolete code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelcl.py

    raa4946b raf1d68c  
    5555MAX_LOOPS = 2048 
    5656 
    57 def _load_model(kernel_module, dtype="single"): 
    58     """ 
    59     Load the OpenCL model defined by *kernel_module*. 
    60  
    61     Access to the OpenCL device is delayed until the kernel is called 
    62     so models can be defined without using too many resources. 
    63     """ 
    64     raise DeprecationWarning 
    65     source, info = generate.make(kernel_module) 
    66     if callable(info.get('Iq', None)): 
    67         return PyModel(info) 
    68     ## for debugging, save source to a .cl file, edit it, and reload as model 
    69     #open(info['name']+'.cl','w').write(source) 
    70     #source = open(info['name']+'.cl','r').read() 
    71     return GpuModel(source, info, np.dtype(dtype)) 
    7257 
    7358ENV = None 
Note: See TracChangeset for help on using the changeset viewer.