Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Commit 79130dd

Browse files
author
Romain Beucher
committed
pyBadlands has been deprecated, the new version is now called badlands
Update Dockerfile, Use pip to install badlands, this should also ix issues on magnus as badlands is not installed in /opt anymore Update links to Badlands
1 parent edcd6db commit 79130dd

File tree

3 files changed

+8
-23
lines changed

3 files changed

+8
-23
lines changed

Dockerfile

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ENV NB_WORK /home/$NB_USER
66

77
WORKDIR /opt
88

9+
# UWGeodynamics
910
RUN git clone -b master https://github.com/underworldcode/UWGeodynamics.git UWGeodynamics&& \
1011
pip3 install --no-cache-dir UWGeodynamics/ && \
1112
rm -rf $NB_WORK/UWGeodynamics && \
@@ -17,26 +18,10 @@ RUN git clone -b master https://github.com/underworldcode/UWGeodynamics.git UWGe
1718
rm -rf UWGeodynamics && \
1819
chown -R $NB_USER:users $NB_WORK/UWGeodynamics
1920

20-
# Badlands dependency
21-
RUN pip3 install --no-cache-dir pandas \
22-
ez_setup \
23-
tribad \
24-
git+https://github.com/awickert/gFlex.git \
25-
git+https://github.com/matplotlib/legacycontour.git \
26-
git+https://github.com/matplotlib/cmocean.git \
27-
colorlover matplotlib
28-
29-
# Compile and install pyBadlands
30-
RUN git clone https://github.com/rbeucher/pyBadlands_serial.git pyBadlands &&\
31-
cd pyBadlands/pyBadlands/libUtils && \
32-
make && \
33-
cd /opt && \
34-
pip3 install --no-cache-dir -e pyBadlands && \
35-
rm -rf pyBadlands/Examples
21+
#Badlands
22+
RUN pip3 install badlands
3623

3724
USER jovyan
38-
ENV PATH $PATH:/opt/pyBadlands/pyBadlands/libUtils
39-
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/opt/pyBadlands/pyBadlands/libUtils
4025

4126
WORKDIR $NB_WORK
4227
CMD ["jupyter", "notebook", "--ip='0.0.0.0'", "--no-browser"]

UWGeodynamics/surfaceProcesses.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def __init__(self, airIndex,
5353
restartFolder=None, restartStep=None, timeField=None,
5454
minCoord=None, maxCoord=None, aspectRatio2d=1.):
5555
try:
56-
import pyBadlands
56+
import badlands
5757

5858
except ImportError:
59-
raise ImportError("""pyBadlands import as failed. Please check your
59+
raise ImportError("""badlands import as failed. Please check your
6060
installation, PYTHONPATH and PATH environment
6161
variables""")
6262

@@ -95,7 +95,7 @@ def _init_model(self):
9595
self.maxCoord = (self.maxCoord[0], self.aspectRatio2d*self.maxCoord[0])
9696

9797
if rank == 0:
98-
from pyBadlands.model import Model as BadlandsModel
98+
from badlands.model import Model as BadlandsModel
9999
self.badlands_model = BadlandsModel()
100100
self.badlands_model.load_xml(self.XML)
101101

docs/source/User Guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ model than in the thermo-mechanical model.
17801780
If the thermomechanical model is 3D the coupling is done in 3D.
17811781
17821782
1783-
.. _documentation: https://github.com/badlands-model/pyBadlands
1783+
.. _documentation: https://github.com/badlands-model/badlands
17841784
.. _XML example: ressources/badlands.xml
17851785
17861786
Deforming Mesh
@@ -1933,4 +1933,4 @@ See below for a sample.
19331933
.. _Lavavu: https://github.com/OKaluza/LavaVu
19341934
.. _HDF5: http://portal.hdfgroup.org/display/support
19351935
.. _Paraview: https://www.paraview.org/
1936-
.. _Badlands: https://github.com/badlands-model/pyBadlands
1936+
.. _Badlands: https://github.com/badlands-model/badlands

0 commit comments

Comments
 (0)