Changeset 9617
- Timestamp:
- Feb 6, 2015, 12:03:23 AM (10 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/.travis.yml
r9616 r9617 13 13 # conda-based environment instead 14 14 - deactivate 15 - wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh \ 16 -O miniconda.sh 15 - wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh -O miniconda.sh 17 16 - chmod +x miniconda.sh && ./miniconda.sh -b 18 17 - export PATH=/home/travis/miniconda/bin:$PATH … … 26 25 27 26 # Conda dependencies 28 - conda create -n testenv --yes python=$PYTHON_VERSION \ 29 numpy scipy netcdf4 nose matplotlib 27 - conda create -n testenv --yes python=$PYTHON_VERSION pip numpy scipy netcdf4 nose matplotlib 30 28 - source activate testenv 31 29 … … 35 33 - export GDAL_DATA=`gdal-config --datadir` 36 34 35 # Install more software to deal with geographical projections 36 - pip install pyproj 37 37 38 # python 2.6 doesn't have argparse by default 38 39 - if [[ "$PYTHON_VERSION" == "2.6" ]]; then conda install argparse; fi 39 40 40 41 41 - python setup.py install -
trunk/anuga_core/anuga/abstract_2d_finite_volumes/generic_domain.py
r9615 r9617 538 538 self.CFL = cfl 539 539 msg = 'Setting CFL > 2.0' 540 #warnings.warn(msg) 541 log.warning(msg) 540 import warnings 541 warnings.warn(msg) 542 #log.warning(msg) 542 543 543 544 assert cfl > 0.0 -
trunk/anuga_core/anuga/abstract_2d_finite_volumes/tests/test_generic_domain.py
r9616 r9617 86 86 87 87 88 domain.set_CFL(3.0) 89 90 import sys 91 # Drop this test if python version < 2.7 92 if sys.version_info[0] > 1 and sys.version_info[1]>6: 93 try: 94 domain.set_CFL(3.0) 95 except: 96 pass 97 else: 98 msg = 'Should have warned of cfl>2.0' 99 raise Exception, msg 88 # 89 90 # Make CFL > 2 warning an error 91 import warnings 92 warnings.simplefilter("error") 93 94 try: 95 domain.set_CFL(3.0) 96 except: 97 pass 98 else: 99 msg = 'Should have warned of cfl>2.0' 100 raise Exception, msg 100 101 101 102 assert domain.CFL == 3.0 -
trunk/anuga_core/anuga/alpha_shape/setup.py
r9519 r9617 13 13 config = Configuration('alpha_shape', parent_package, top_path) 14 14 15 config.add_data_dir('test ')15 config.add_data_dir('tests') 16 16 17 17 return config -
trunk/anuga_core/anuga/structures/setup.py
r9569 r9617 14 14 15 15 config.add_data_dir('tests') 16 config.add_data_dir(join('test ','data'))16 config.add_data_dir(join('tests','data')) 17 17 18 18 -
trunk/anuga_core/anuga/tsunami_source/tests/test_okada_tsunami.py
r9614 r9617 379 379 ## independent of this one (i.e. they don't call okada's fortran) 380 380 path=get_pathname_from_package('anuga.tsunami_source') 381 octave=numpy.genfromtxt(path+sep+' okada_tsunami_octave_95.txt')381 octave=numpy.genfromtxt(path+sep+'tests'+sep+'okada_tsunami_octave_95.txt') 382 382 octave_asvec=numpy.transpose(octave).reshape((1,101*101)) 383 383 -
trunk/anuga_core/anuga/utilities/tests/test_spatialInputUtil.py
r9513 r9617 12 12 import numpy 13 13 import os 14 import sys 14 15 from anuga.shallow_water.shallow_water_domain import Domain 15 16 from anuga.utilities import plot_utils as util … … 158 159 # Test conversion to-from Wkb 159 160 161 # Only run test if python >= 2.7 162 if sys.hexversion < 0x02070000: return 163 160 164 seg=[ [0., -2., 1.], [100., -100., 2.], [10., 8., 3.], [0., -2., 1.]] 161 165 seg_Wkb=su.ListPts2Wkb(seg,geometry_type='line') … … 228 232 # 229 233 # Make an intersection, check it works 234 235 # Only run if python >= 2.7 236 if sys.hexversion < 0x02070000: return 237 238 230 239 seg1=[ [-10., 0.], [10., 0.]] 231 240 seg2=[ [0., -10.], [0., 10.]] … … 362 371 def test_add_intersections_to_domain_features(self): 363 372 373 # Only run test if python >= 2.7 374 if sys.hexversion < 0x02070000: return 375 364 376 bounding_polygon=[ [0., 0.], [0., 10.], [10., 10.], [10., 0.]] 365 377
Note: See TracChangeset
for help on using the changeset viewer.