Changes in / [e2d6e3b:43ff77c] in sasmodels
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
.travis.yml
rbec0e75 r01e551a 1 # Test Travis CL2 3 1 language: python 4 2 python: 5 - "2.7" 6 # whitelist 3 - '2.7' 7 4 branches: 8 5 only: 9 - master 10 # command to install dependencies 6 - master 11 7 virtualenv: 12 8 system_site_packages: true 13 9 before_install: 14 - sudo apt-get update; 15 - sudo apt-get install python-numpy python-scipy 16 # - sudo apt-get install opencl-headers 17 10 - sudo apt-get update; 11 - sudo apt-get install python-numpy python-scipy 18 12 install: 19 # - pip install pyopencl 20 - pip install bumps 21 - pip install unittest-xml-reporting 13 - pip install bumps 14 - pip install unittest-xml-reporting 22 15 script: 23 - export WORKSPACE=/home/travis/build/SasView/sasmodels/ 24 - python -m sasmodels.model_test dll all 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= -
sasmodels/compare.py
rc4e3215 r650c6d2 546 546 'f32': '32', 547 547 'f64': '64', 548 'float16': '16', 549 'float32': '32', 550 'float64': '64', 551 'float128': '128', 548 552 'longdouble': '128', 549 553 } -
sasmodels/core.py
r5124c969 r650c6d2 250 250 dtype = "longdouble" 251 251 elif dtype == "half": 252 dtype = "f 16"252 dtype = "float16" 253 253 254 254 # Convert dtype string to numpy dtype. -
sasmodels/kerneldll.py
r886fa25 rb2f1d2f 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 vcvarsall.bat has been called, then VCINSTALLDIR is in the environment102 # and we can use the MSVC compiler. Otherwise, if tinycc is available103 # the use it. Otherwise, hope that mingw is available.104 if "VCINSTALLDIR" in os.environ:105 compiler = "msvc"106 elif tinycc:107 compiler = "tinycc"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 environment 105 # and we can use the MSVC compiler. Otherwise, if tinycc is available 106 # the use it. Otherwise, hope that mingw is available. 107 COMPILER = "msvc" 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
rb397165 rdbfd471 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 = form()237 Iq = np.asarray(form(), 'd') 238 238 if np.isnan(Iq).any(): continue 239 239 -
sasmodels/models/hayter_msa.py
ra807206 r5702f52 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, 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"],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"], 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.