Changes in / [6ceca44:1258e32] in sasmodels


Ignore:
Files:
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    re9ed2de re9ed2de  
    88*.so 
    99*.obj 
    10 *.o 
    1110/doc/_build/ 
    1211/doc/api/ 
     
    2019/.pydevproject 
    2120/.idea 
    22 .vscode 
    2321/sasmodels.egg-info/ 
    2422/example/Fit_*/ 
  • sasmodels/kerneldll.py

    r1ddb794 r2d81cfe  
    185185        subprocess.check_output(command, shell=shell, stderr=subprocess.STDOUT) 
    186186    except subprocess.CalledProcessError as exc: 
    187         raise RuntimeError("compile failed.\n%s\n%s" 
    188                            % (command_str, exc.output.decode())) 
     187        raise RuntimeError("compile failed.\n%s\n%s"%(command_str, exc.output)) 
    189188    if not os.path.exists(output): 
    190189        raise RuntimeError("compile failed.  File is in %r"%source) 
  • sasmodels/modelinfo.py

    r5ab99b7 r108e70e  
    1212from os.path import abspath, basename, splitext 
    1313import inspect 
    14 import logging 
    1514 
    1615import numpy as np  # type: ignore 
    17  
    18 from . import autoc 
    1916 
    2017# Optional typing 
     
    3532    TestCondition = Tuple[ParameterSetUser, TestInput, TestValue] 
    3633# pylint: enable=unused-import 
    37  
    38 logger = logging.getLogger(__name__) 
    3934 
    4035# If MAX_PD changes, need to change the loop macros in kernel_iq.c 
     
    809804    info.sesans = getattr(kernel_module, 'sesans', None) # type: ignore 
    810805    # Default single and opencl to True for C models.  Python models have callable Iq. 
     806    info.opencl = getattr(kernel_module, 'opencl', not callable(info.Iq)) 
     807    info.single = getattr(kernel_module, 'single', not callable(info.Iq)) 
    811808    info.random = getattr(kernel_module, 'random', None) 
    812809 
     
    817814    info.hidden = getattr(kernel_module, 'hidden', None) # type: ignore 
    818815 
     816    if callable(info.Iq) and parameters.has_2d: 
     817        raise ValueError("oriented python models not supported") 
     818 
    819819    info.lineno = {} 
    820820    _find_source_lines(info, kernel_module) 
    821     if getattr(kernel_module, 'py2c', False): 
    822         try: 
    823             autoc.convert(info, kernel_module) 
    824         except Exception as exc: 
    825             logger.warn(str(exc) + " while converting %s from C to python"%name) 
    826  
    827     # Needs to come after autoc.convert since the Iq symbol may have been 
    828     # converted from python to C 
    829     info.opencl = getattr(kernel_module, 'opencl', not callable(info.Iq)) 
    830     info.single = getattr(kernel_module, 'single', not callable(info.Iq)) 
    831  
    832     if callable(info.Iq) and parameters.has_2d: 
    833         raise ValueError("oriented python models not supported") 
    834821 
    835822    return info 
Note: See TracChangeset for help on using the changeset viewer.