Skip to content

Commit 619e4cc

Browse files
authored
use mlipx-hub (#47)
* use `mlipx-hub` * update paths, remove examples * load submodules * update `dvc pull` * update hub * update mlipx-hub
1 parent bf87d27 commit 619e4cc

File tree

327 files changed

+41
-13561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

327 files changed

+41
-13561
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "mlipx-hub"]
2+
path = mlipx-hub
3+
url = https://github.com/basf/mlipx-hub

.readthedocs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version: 2
22

3+
submodules:
4+
include: all
5+
36
build:
47
os: "ubuntu-22.04"
58
tools:
@@ -16,7 +19,7 @@ build:
1619
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
1720
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
1821
# Navigate to the examples directory and perform DVC operations
19-
- cd examples && poetry run dvc remote modify origin endpointurl $AWS_ENDPOINT_URL && poetry run dvc pull --allow-missing
22+
- cd mlipx-hub && poetry run dvc pull --allow-missing
2023

2124
sphinx:
2225
configuration: docs/source/conf.py

docs/source/recipes/adsorption.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The following example creates a slab of ``Cu(111)`` and calculates the adsorptio
1717

1818
from mlipx.doc_utils import get_plots
1919

20-
plots = get_plots("*RelaxAdsorptionConfigs", "../../examples/adsorption/")
20+
plots = get_plots("*RelaxAdsorptionConfigs", "../../mlipx-hub/adsorption/")
2121
plots["adsorption_energies"].show()
2222
2323
This test uses the following Nodes together with your provided model in the :term:`models.py` file:
@@ -29,11 +29,11 @@ This test uses the following Nodes together with your provided model in the :ter
2929

3030
.. dropdown:: Content of :code:`main.py`
3131

32-
.. literalinclude:: ../../../examples/adsorption/main.py
32+
.. literalinclude:: ../../../mlipx-hub/adsorption/main.py
3333
:language: Python
3434

3535

3636
.. dropdown:: Content of :code:`models.py`
3737

38-
.. literalinclude:: ../../../examples/adsorption/models.py
38+
.. literalinclude:: ../../../mlipx-hub/adsorption/models.py
3939
:language: Python

docs/source/recipes/energy_and_forces.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This recipe is used to test the performance of different models in predicting th
4848

4949
from mlipx.doc_utils import get_plots
5050

51-
plots = get_plots("*CompareCalculatorResults", "../../examples/metrics/")
51+
plots = get_plots("*CompareCalculatorResults", "../../mlipx-hub/metrics/")
5252
# raise ValueError(plots.keys())
5353
plots["fmax_error"].show()
5454
plots["adjusted_energy_error_per_atom"].show()
@@ -65,11 +65,11 @@ This recipe uses the following Nodes together with your provided model in the :t
6565

6666
.. dropdown:: Content of :code:`main.py`
6767

68-
.. literalinclude:: ../../../examples/metrics/main.py
68+
.. literalinclude:: ../../../mlipx-hub/metrics/main.py
6969
:language: Python
7070

7171

7272
.. dropdown:: Content of :code:`models.py`
7373

74-
.. literalinclude:: ../../../examples/metrics/models.py
74+
.. literalinclude:: ../../../mlipx-hub/metrics/models.py
7575
:language: Python

docs/source/recipes/energy_volume.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Compute the energy-volume curve for a given material using multiple models.
1515

1616
from mlipx.doc_utils import get_plots
1717

18-
plots = get_plots("*EnergyVolumeCurve", "../../examples/energy-volume/")
18+
plots = get_plots("*EnergyVolumeCurve", "../../mlipx-hub/energy-volume/")
1919
plots["adjusted_energy-volume-curve"].show()
2020
2121

@@ -25,11 +25,11 @@ This recipe uses the following Nodes together with your provided model in the :t
2525

2626
.. dropdown:: Content of :code:`main.py`
2727

28-
.. literalinclude:: ../../../examples/energy-volume/main.py
28+
.. literalinclude:: ../../../mlipx-hub/energy-volume/main.py
2929
:language: Python
3030

3131

3232
.. dropdown:: Content of :code:`models.py`
3333

34-
.. literalinclude:: ../../../examples/energy-volume/models.py
34+
.. literalinclude:: ../../../mlipx-hub/energy-volume/models.py
3535
:language: Python

docs/source/recipes/homonuclear_diatomics.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In the following we show the results for the :code:`Li-Li` bond for the three se
2323

2424
from mlipx.doc_utils import get_plots
2525

26-
plots = get_plots("*HomonuclearDiatomics", "../../examples/diatomics/")
26+
plots = get_plots("*HomonuclearDiatomics", "../../mlipx-hub/diatomics/")
2727
plots["Li-Li bond (adjusted)"].show()
2828
2929

@@ -33,11 +33,11 @@ This test uses the following Nodes together with your provided model in the :ter
3333

3434
.. dropdown:: Content of :code:`main.py`
3535

36-
.. literalinclude:: ../../../examples/diatomics/main.py
36+
.. literalinclude:: ../../../mlipx-hub/diatomics/main.py
3737
:language: Python
3838

3939

4040
.. dropdown:: Content of :code:`models.py`
4141

42-
.. literalinclude:: ../../../examples/diatomics/models.py
42+
.. literalinclude:: ../../../mlipx-hub/diatomics/models.py
4343
:language: Python

docs/source/recipes/invariances.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Check the rotational, translational and permutational invariance of an :term:`ml
1616

1717
from mlipx.doc_utils import get_plots
1818

19-
plots = get_plots("*TranslationalInvariance", "../../examples/invariances/")
19+
plots = get_plots("*TranslationalInvariance", "../../mlipx-hub/invariances/")
2020
plots["energy_vs_steps_adjusted"].show()
2121
2222
plots = get_plots("*RotationalInvariance", ".")
@@ -34,11 +34,11 @@ This recipe uses:
3434

3535
.. dropdown:: Content of :code:`main.py`
3636

37-
.. literalinclude:: ../../../examples/invariances/main.py
37+
.. literalinclude:: ../../../mlipx-hub/invariances/main.py
3838
:language: Python
3939

4040

4141
.. dropdown:: Content of :code:`models.py`
4242

43-
.. literalinclude:: ../../../examples/invariances/models.py
43+
.. literalinclude:: ../../../mlipx-hub/invariances/models.py
4444
:language: Python

docs/source/recipes/md.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This recipe is used to test the performance of different models in molecular dyn
1616

1717
from mlipx.doc_utils import get_plots
1818

19-
plots = get_plots("*MolecularDynamics", "../../examples/md/")
19+
plots = get_plots("*MolecularDynamics", "../../mlipx-hub/md/")
2020
plots["energy_vs_steps_adjusted"].show()
2121
2222
This test uses the following Nodes together with your provided model in the :term:`models.py` file:
@@ -28,11 +28,11 @@ This test uses the following Nodes together with your provided model in the :ter
2828

2929
.. dropdown:: Content of :code:`main.py`
3030

31-
.. literalinclude:: ../../../examples/md/main.py
31+
.. literalinclude:: ../../../mlipx-hub/md/main.py
3232
:language: Python
3333

3434

3535
.. dropdown:: Content of :code:`models.py`
3636

37-
.. literalinclude:: ../../../examples/md/models.py
37+
.. literalinclude:: ../../../mlipx-hub/md/models.py
3838
:language: Python

docs/source/recipes/neb.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You can run the following command to instantiate a test directory:
1818

1919
from mlipx.doc_utils import get_plots
2020

21-
plots = get_plots("*NEBs", "../../examples/neb/")
21+
plots = get_plots("*NEBs", "../../mlipx-hub/neb/")
2222
plots["adjusted_energy_vs_neb_image"].show()
2323
2424
This test uses the following Nodes together with your provided model in the :term:`models.py` file:
@@ -29,11 +29,11 @@ This test uses the following Nodes together with your provided model in the :ter
2929

3030
.. dropdown:: Content of :code:`main.py`
3131

32-
.. literalinclude:: ../../../examples/neb/main.py
32+
.. literalinclude:: ../../../mlipx-hub/neb/main.py
3333
:language: Python
3434

3535

3636
.. dropdown:: Content of :code:`models.py`
3737

38-
.. literalinclude:: ../../../examples/neb/models.py
38+
.. literalinclude:: ../../../mlipx-hub/neb/models.py
3939
:language: Python

docs/source/recipes/phase_diagram.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can run the following command to instantiate a test directory:
1515

1616
from mlipx.doc_utils import get_plots
1717

18-
plots = get_plots("*PhaseDiagram", "../../examples/phase_diagram/")
18+
plots = get_plots("*PhaseDiagram", "../../mlipx-hub/phase_diagram/")
1919
plots["mace_mp_0-phase-diagram"].show()
2020
plots["orb_v2_0-phase-diagram"].show()
2121
plots["sevennet_0-phase-diagram"].show()
@@ -29,11 +29,11 @@ This test uses the following Nodes together with your provided model in the :ter
2929

3030
.. dropdown:: Content of :code:`main.py`
3131

32-
.. literalinclude:: ../../../examples/phase_diagram/main.py
32+
.. literalinclude:: ../../../mlipx-hub/phase_diagram/main.py
3333
:language: Python
3434

3535

3636
.. dropdown:: Content of :code:`models.py`
3737

38-
.. literalinclude:: ../../../examples/phase_diagram/models.py
38+
.. literalinclude:: ../../../mlipx-hub/phase_diagram/models.py
3939
:language: Python

0 commit comments

Comments
 (0)