Changes in / [587cbcd:bccb40f] in sasmodels
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
.travis.yml
r24cd982 r01e551a 1 1 language: python 2 3 sudo: false 4 5 matrix: 6 include: 7 - os: linux 8 env: 9 - PY=2.7 10 - NUMPYSPEC=numpy 11 - os: linux 12 env: 13 - PY=3 14 - NUMPYSPEC=numpy 15 - os: osx 16 language: generic 17 env: 18 - PY=2.7 19 - NUMPYSPEC=numpy 20 - os: osx 21 language: generic 22 env: 23 - PY=3 24 - NUMPYSPEC=numpy 25 26 # whitelist 2 python: 3 - '2.7' 27 4 branches: 28 5 only: 29 - master 30 31 addons: 32 apt: 33 packages: 34 opencl-headers 35 6 - master 7 virtualenv: 8 system_site_packages: true 36 9 before_install: 37 - echo $TRAVIS_OS_NAME 38 39 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 40 wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; 41 fi; 42 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 43 wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; 44 fi; 45 46 - bash miniconda.sh -b -p $HOME/miniconda 47 - export PATH="$HOME/miniconda/bin:$PATH" 48 - hash -r 49 - conda update --yes conda 50 51 # Useful for debugging any issues with conda 52 - conda info -a 53 54 - conda install --yes python=$PY $NUMPYSPEC scipy cython mako cffi 55 56 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 57 pip install pyopencl; 58 fi; 59 10 - sudo apt-get update; 11 - sudo apt-get install python-numpy python-scipy 60 12 install: 61 - pip install bumps 62 - pip install unittest-xml-reporting 63 13 - pip install bumps 14 - pip install unittest-xml-reporting 64 15 script: 65 16 - export WORKSPACE=/home/travis/build/SasView/sasmodels/ 66 17 - python -m sasmodels.model_test dll all 67 68 18 notifications: 69 19 slack: -
sasmodels/kerneldll.py
rb2f1d2f r886fa25 97 97 98 98 if "SAS_COMPILER" in os.environ: 99 COMPILER= os.environ["SAS_COMPILER"]99 compiler = os.environ["SAS_COMPILER"] 100 100 elif os.name == 'nt': 101 if tinycc is not None:102 COMPILER = "tinycc"103 elif "VCINSTALLDIR" in os.environ:104 # If vcvarsall.bat has been called, then VCINSTALLDIR is in the environment105 # and we can use the MSVC compiler. Otherwise, if tinycc is available106 # the use it. Otherwise, hope that mingw is available.107 COMPILER = "msvc"101 # If vcvarsall.bat has been called, then VCINSTALLDIR is in the environment 102 # and we can use the MSVC compiler. Otherwise, if tinycc is available 103 # the use it. Otherwise, hope that mingw is available. 104 if "VCINSTALLDIR" in os.environ: 105 compiler = "msvc" 106 elif tinycc: 107 compiler = "tinycc" 108 108 else: 109 COMPILER= "mingw"109 compiler = "mingw" 110 110 else: 111 COMPILER= "unix"111 compiler = "unix" 112 112 113 113 ARCH = "" if ct.sizeof(ct.c_void_p) > 4 else "x86" # 4 byte pointers on x86 114 if COMPILER== "unix":114 if compiler == "unix": 115 115 # Generic unix compile 116 116 # On mac users will need the X code command line tools installed … … 123 123 """unix compiler command""" 124 124 return CC + [source, "-o", output, "-lm"] 125 elif COMPILER== "msvc":125 elif compiler == "msvc": 126 126 # Call vcvarsall.bat before compiling to set path, headers, libs, etc. 127 127 # MSVC compiler is available, so use it. OpenMP requires a copy of … … 139 139 """MSVC compiler command""" 140 140 return CC + ["/Tp%s"%source] + LN + ["/OUT:%s"%output] 141 elif COMPILER== "tinycc":141 elif compiler == "tinycc": 142 142 # TinyCC compiler. 143 143 CC = [tinycc.TCC] + "-shared -rdynamic -Wall".split() … … 145 145 """tinycc compiler command""" 146 146 return CC + [source, "-o", output] 147 elif COMPILER== "mingw":147 elif compiler == "mingw": 148 148 # MinGW compiler. 149 149 CC = "gcc -shared -std=c99 -O2 -Wall".split() -
sasmodels/kernelpy.py
rdbfd471 rb397165 235 235 # exclude all q for that NaN. Even better would be to have an 236 236 # INVALID expression like the C models, but that is too expensive. 237 Iq = np.asarray(form(), 'd')237 Iq = form() 238 238 if np.isnan(Iq).any(): continue 239 239
Note: See TracChangeset
for help on using the changeset viewer.