Changes in / [43ff77c:e2d6e3b] in sasmodels


Ignore:
Files:
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • .travis.yml

    r01e551a rbec0e75  
     1# Test Travis CL 
     2 
    13language: python 
    24python: 
    3 - '2.7' 
     5  - "2.7" 
     6# whitelist 
    47branches: 
    58  only: 
    6   - master 
     9    - master 
     10# command to install dependencies 
    711virtualenv: 
    812  system_site_packages: true 
    913before_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 
    1218install: 
    13 - pip install bumps 
    14 - pip install unittest-xml-reporting 
     19#  - pip install pyopencl 
     20  - pip install bumps 
     21  - pip install unittest-xml-reporting 
    1522script: 
    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  
    546546    'f32': '32', 
    547547    'f64': '64', 
    548     'float16': '16', 
    549     'float32': '32', 
    550     'float64': '64', 
    551     'float128': '128', 
    552548    'longdouble': '128', 
    553549} 
  • sasmodels/core.py

    r650c6d2 r5124c969  
    250250        dtype = "longdouble" 
    251251    elif dtype == "half": 
    252         dtype = "float16" 
     252        dtype = "f16" 
    253253 
    254254    # Convert dtype string to numpy dtype. 
  • sasmodels/kerneldll.py

    rb2f1d2f r886fa25  
    9797 
    9898if "SAS_COMPILER" in os.environ: 
    99     COMPILER = os.environ["SAS_COMPILER"] 
     99    compiler = os.environ["SAS_COMPILER"] 
    100100elif 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 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" 
     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" 
    108108    else: 
    109         COMPILER = "mingw" 
     109        compiler = "mingw" 
    110110else: 
    111     COMPILER = "unix" 
     111    compiler = "unix" 
    112112 
    113113ARCH = "" if ct.sizeof(ct.c_void_p) > 4 else "x86"  # 4 byte pointers on x86 
    114 if COMPILER == "unix": 
     114if compiler == "unix": 
    115115    # Generic unix compile 
    116116    # On mac users will need the X code command line tools installed 
     
    123123        """unix compiler command""" 
    124124        return CC + [source, "-o", output, "-lm"] 
    125 elif COMPILER == "msvc": 
     125elif compiler == "msvc": 
    126126    # Call vcvarsall.bat before compiling to set path, headers, libs, etc. 
    127127    # MSVC compiler is available, so use it.  OpenMP requires a copy of 
     
    139139        """MSVC compiler command""" 
    140140        return CC + ["/Tp%s"%source] + LN + ["/OUT:%s"%output] 
    141 elif COMPILER == "tinycc": 
     141elif compiler == "tinycc": 
    142142    # TinyCC compiler. 
    143143    CC = [tinycc.TCC] + "-shared -rdynamic -Wall".split() 
     
    145145        """tinycc compiler command""" 
    146146        return CC + [source, "-o", output] 
    147 elif COMPILER == "mingw": 
     147elif compiler == "mingw": 
    148148    # MinGW compiler. 
    149149    CC = "gcc -shared -std=c99 -O2 -Wall".split() 
  • sasmodels/kernelpy.py

    rdbfd471 rb397165  
    235235            # exclude all q for that NaN.  Even better would be to have an 
    236236            # INVALID expression like the C models, but that is too expensive. 
    237             Iq = np.asarray(form(), 'd') 
     237            Iq = form() 
    238238            if np.isnan(Iq).any(): continue 
    239239 
  • sasmodels/models/hayter_msa.py

    r5702f52 ra807206  
    7474    ["radius_effective", "Ang", 20.75,   [0, inf],    "volume", "effective radius of charged sphere"], 
    7575    ["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"], 
    7979    ["dielectconst",  "None",    71.08,   [-inf, inf], "", "dielectric constant (relative permittivity) of solvent, default water, for Debye length"] 
    8080    ] 
Note: See TracChangeset for help on using the changeset viewer.