Skip to content

Commit a73683e

Browse files
committed
Merge branch 'barnhark/update_testing_proceedures' into barnhark/rockblock
2 parents dbef8ae + b53dae8 commit a73683e

7 files changed

Lines changed: 256 additions & 1220 deletions

File tree

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,21 @@ install:
3838
if [[ "$TRAVIS_BRANCH" == "release" ]]; then
3939
conda install landlab -c landlab
4040
else
41+
pwd
42+
cd ../..
4143
git clone --depth=50 https://github.com/landlab/landlab.git landlab/landlab
4244
cd landlab/landlab
4345
git fetch origin master
4446
git checkout -qf master
4547
git submodule update --init --recursive
4648
conda install --file=requirements.txt
4749
python setup.py develop
48-
cd ../..
50+
cd ../../landlab/tutorials
4951
fi
5052
- conda install jupyter dask holoviews pytest
5153
- conda info -a && conda list
5254
script:
53-
- pytest
55+
- pwd
56+
- travis_wait 50 pytest # the cellular atomata test takes over 10 minutes, and the entire process takes about 30 minutes, so we'll give it 50 min
5457
virtualenv:
5558
system_site_packages: false

ecohydrology/cellular_automaton_vegetation_flat_surface/Ecohyd_functions_flat.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def Empty_arrays(n, grid, grid1):
111111
Time = np.empty(n) # To record time elapsed from the start of simulation
112112
# CumWaterStress = np.empty([n/55, grid1.number_of_cells])
113113
# Cum Water Stress
114-
VegType = np.empty([n/55, grid1.number_of_cells], dtype=int)
114+
VegType = np.empty([int(n/55), grid1.number_of_cells], dtype=int)
115115
PET_ = np.zeros([365, grid.number_of_cells])
116116
Rad_Factor = np.empty([365, grid.number_of_cells])
117117
EP30 = np.empty([365, grid.number_of_cells])
@@ -187,9 +187,7 @@ def Plot_(grid, VegType, yrs, yr_step=10):
187187
pic += 1
188188
plt.figure(pic)
189189
plt.plot(years, grass_cov, '-g', label='Grass')
190-
plt.hold(True)
191190
plt.plot(years, shrub_cov, '-r', label='Shrub')
192-
plt.hold(True)
193191
plt.plot(years, tree_cov, '-k', label='Tree')
194192
plt.ylabel(' % Coverage ')
195193
plt.xlabel('Time in years')

ecohydrology/cellular_automaton_vegetation_flat_surface/cellular_automaton_vegetation_flat_domain.ipynb

Lines changed: 94 additions & 81 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)