Changes in / [43ff77c:e2d6e3b] in sasmodels
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
.travis.yml
r01e551a rbec0e75 1 # Test Travis CL 2 1 3 language: python 2 4 python: 3 - '2.7' 5 - "2.7" 6 # whitelist 4 7 branches: 5 8 only: 6 - master 9 - master 10 # command to install dependencies 7 11 virtualenv: 8 12 system_site_packages: true 9 13 before_install: 10 - sudo apt-get update; 11 - sudo apt-get install python-numpy python-scipy 14 - sudo apt-get update; 15 - sudo apt-get install python-numpy python-scipy 16 # - sudo apt-get install opencl-headers 17 12 18 install: 13 - pip install bumps 14 - pip install unittest-xml-reporting 19 # - pip install pyopencl 20 - pip install bumps 21 - pip install unittest-xml-reporting 15 22 script: 16 - export WORKSPACE=/home/travis/build/SasView/sasmodels/ 17 - python -m sasmodels.model_test dll all 18 notifications: 19 slack: 20 secure: xNAUeSu1/it/x9Q2CSg79aw1LLc7d6mLpcqSCTeKROp71RhkFf8VjJnJm/lEbKHNC8yj5H9UHrz5DmzwJzI+6oMt4NdEeS6WvGhwGY/wCt2IcJKxw0vj1DAU04qFMS041Khwclo6jIqm76DloinXvmvsS+K/nSyQkF7q4egSlwA= 23 - export WORKSPACE=/home/travis/build/SasView/sasmodels/ 24 - python -m sasmodels.model_test dll all -
sasmodels/compare.py
r650c6d2 rc4e3215 546 546 'f32': '32', 547 547 'f64': '64', 548 'float16': '16',549 'float32': '32',550 'float64': '64',551 'float128': '128',552 548 'longdouble': '128', 553 549 } -
sasmodels/core.py
r650c6d2 r5124c969 250 250 dtype = "longdouble" 251 251 elif dtype == "half": 252 dtype = "f loat16"252 dtype = "f16" 253 253 254 254 # Convert dtype string to numpy dtype. -
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 -
sasmodels/models/hayter_msa.py
r5702f52 ra807206 74 74 ["radius_effective", "Ang", 20.75, [0, inf], "volume", "effective radius of charged sphere"], 75 75 ["volfraction", "None", 0.0192, [0, 0.74], "", "volume fraction of spheres"], 76 ["charge", "e", 19.0, [0, 200], "", "charge on sphere (in electrons)"],77 ["temperature", "K", 318.16, [0, 450], "", "temperature, in Kelvin, for Debye length calculation"],78 ["concentration_salt", "M", 0.0, [ 0, inf], "", "conc of salt, moles/litre, 1:1 electolyte, for Debye length"],76 ["charge", "e", 19.0, [0, inf], "", "charge on sphere (in electrons)"], 77 ["temperature", "K", 318.16, [0, inf], "", "temperature, in Kelvin, for Debye length calculation"], 78 ["concentration_salt", "M", 0.0, [-inf, inf], "", "conc of salt, moles/litre, 1:1 electolyte, for Debye length"], 79 79 ["dielectconst", "None", 71.08, [-inf, inf], "", "dielectric constant (relative permittivity) of solvent, default water, for Debye length"] 80 80 ]
Note: See TracChangeset
for help on using the changeset viewer.