Changes in / [93fbc34:1941ec6] in sasmodels


Ignore:
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    r9248bf7 r2badeca  
    88*.so 
    99*.obj 
     10*.o 
    1011/doc/_build/ 
    1112/doc/api/ 
     
    1920/.pydevproject 
    2021/.idea 
     22.vscode 
     23xlate.c 
    2124/sasmodels.egg-info/ 
    2225/example/Fit_*/ 
  • sasmodels/kerneldll.py

    r2d81cfe r1ddb794  
    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"%(command_str, exc.output)) 
     187        raise RuntimeError("compile failed.\n%s\n%s" 
     188                           % (command_str, exc.output.decode())) 
    188189    if not os.path.exists(output): 
    189190        raise RuntimeError("compile failed.  File is in %r"%source) 
  • sasmodels/modelinfo.py

    r108e70e r108e70e  
    1212from os.path import abspath, basename, splitext 
    1313import inspect 
     14import logging 
    1415 
    1516import numpy as np  # type: ignore 
     17 
     18from . import autoc 
    1619 
    1720# Optional typing 
     
    3235    TestCondition = Tuple[ParameterSetUser, TestInput, TestValue] 
    3336# pylint: enable=unused-import 
     37 
     38logger = logging.getLogger(__name__) 
    3439 
    3540# If MAX_PD changes, need to change the loop macros in kernel_iq.c 
     
    789794    info.structure_factor = getattr(kernel_module, 'structure_factor', False) 
    790795    info.profile_axes = getattr(kernel_module, 'profile_axes', ['x', 'y']) 
     796    info.c_code = getattr(kernel_module, 'c_code', None) 
    791797    info.source = getattr(kernel_module, 'source', []) 
    792798    info.c_code = getattr(kernel_module, 'c_code', None) 
     
    819825    info.lineno = {} 
    820826    _find_source_lines(info, kernel_module) 
     827    try: 
     828        autoc.convert(info, kernel_module) 
     829    except Exception as exc: 
     830        raise 
     831        logger.warn(str(exc)) 
    821832 
    822833    return info 
Note: See TracChangeset for help on using the changeset viewer.