Changeset a4280bd in sasmodels for sasmodels/core.py


Ignore:
Timestamp:
Jul 25, 2016 11:54:30 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:
2f5c6d4
Parents:
2c74c11
Message:

restructure magnetic models to use less code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/core.py

    rdef2c1b ra4280bd  
    144144    if platform == "dll": 
    145145        #print("building dll", numpy_dtype) 
    146         return kerneldll.load_dll(source, model_info, numpy_dtype) 
     146        return kerneldll.load_dll(source['dll'], model_info, numpy_dtype) 
    147147    else: 
    148148        #print("building ocl", numpy_dtype) 
     
    166166    for model_name in list_models(): 
    167167        model_info = load_model_info(model_name) 
    168         source = generate.make_source(model_info) 
    169         if source: 
     168        if not callable(model_info.Iq): 
     169            source = generate.make_source(model_info)['dll'] 
    170170            old_path = kerneldll.DLL_PATH 
    171171            try: 
Note: See TracChangeset for help on using the changeset viewer.