Skip to content

Commit

Permalink
Add OGGM paths to postbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Jan 13, 2019
1 parent 200b3ba commit a0cc08d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,16 @@ cd ~
python -c "import matplotlib as mpl; mpl.use('Agg'); import pylab as plt; fig, ax = plt.subplots(); fig.savefig('test.png')"
test -e test.png && rm test.png

# Set up OGGM paths
mkdir .oggm_cache
rm -f .oggm_config
echo "dl_cache_dir = $HOME/.oggm_cache/download_cache" >> .oggm_config
echo "dl_cache_readonly = False" >> .oggm_config
echo "tmp_dir = $HOME/.oggm_cache/tmp" >> .oggm_config
echo "cru_dir = $HOME/.oggm_cache/cru" >> .oggm_config
echo "rgi_dir = $HOME/.oggm_cache/rgi" >> .oggm_config
echo "test_dir = $HOME/.oggm_cache/OGGM_tests" >> .oggm_config
echo "has_internet = True" >> .oggm_config

# Get the OGGM data
python binder/download_cache.py

0 comments on commit a0cc08d

Please sign in to comment.