Skip to content

Commit 679116b

Browse files
authored
Merge pull request #961 from flohorovicic/main_fw
Updated changes in main repo for consistency with documentation
2 parents 1e36381 + 4142924 commit 679116b

File tree

3 files changed

+71
-9
lines changed

3 files changed

+71
-9
lines changed

docs/source/installation.rst

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ The latest release version of ``GemPy`` is available via **PyPi**. To install th
1515
1616
This will install ``GemPy`` with the minimal required dependencies.
1717

18+
GemPy viewer
19+
^^^^^^^^^^^^
20+
21+
For visualization in 2-D and 3-D, the additional package ``gempy-viewer`` can be used and installed with:
22+
23+
.. code-block:: bash
24+
25+
$ pip install gempy-viewer
26+
27+
The 3-D visualization is based on `pyvista`. This package needs to be installed separately. Please check:
28+
29+
- PyVista: Installation guide available on the `PyVista installation page <https://docs.pyvista.org/getting-started/installation.html>`_.
30+
31+
32+
1833
Enhanced Installation Options
1934
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2035

@@ -39,10 +54,8 @@ For additional features, ``GemPy`` offers enhanced installation options:
3954
$ pip install gempy[dev]
4055
4156
42-
Note: Some functionalities in ``GemPy`` require `PyTorch` and `pyvista`. These libraries need to be installed separately:
43-
44-
- PyTorch: Follow the instructions on the `PyTorch installation page <https://pytorch.org/get-started/locally/>`_.
45-
- PyVista: Installation guide available on the `PyVista installation page <https://docs.pyvista.org/getting-started/installation.html>`_.
57+
Note: Some advanced functionalities in ``GemPy`` require `PyTorch`. For installation, please follow the
58+
instructions on the `PyTorch installation page <https://pytorch.org/get-started/locally/>`_.
4659

4760
Manual Installation
4861
^^^^^^^^^^^^^^^^^^^
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Other tutorials
1+
Video tutorials
22
---------------
33

4-
Compilation of tutorials that do not fit in the above categories.
4+
Compilation of tutorials for videos on the `gempy` YouTube channel https://www.youtube.com/@GemPy3D.

examples/tutorials/z_other_tutorials/video_tutorial_model_1.py

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,51 @@
11
"""
2-
Modeling step by step
3-
^^^^^^^^^^^^^^^^^^^^^
2+
Video Tutorial "code-along": Modeling step by step
3+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
55
This tutorial demonstrates step-by-step geological modeling using the `gempy` and `gempy_viewer` libraries.
66
It follows the Video tutorial series available on the `gempy` YouTube channel (https://www.youtube.com/@GemPy3D).
77
"""
88

9+
10+
# %%
11+
# Video tutorial 1: Introduction
12+
# """"""""""""""""""""""""""""""
13+
#
14+
# The first video is an introduction to GemPy - please view online before starting the tutorial.
15+
#
16+
# https://youtu.be/3elCCHhARsU
17+
#
18+
#
19+
20+
# %%
21+
#.. raw:: html
22+
#
23+
# <iframe width="560" height="315"
24+
# src="https://www.youtube.com/embed/3elCCHhARsU"
25+
# title="YouTube video player"
26+
# frameborder="0"
27+
# allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
28+
# allowfullscreen>
29+
# </iframe>
30+
31+
932
# %%
1033
# Video tutorial 2: Input data
1134
# """"""""""""""""""""""""""""
1235

36+
# %%
37+
#.. raw:: html
38+
#
39+
# <iframe width="560" height="315"
40+
# src="https://www.youtube.com/embed/yYwJVYy8ilw"
41+
# title="YouTube video player"
42+
# frameborder="0"
43+
# allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
44+
# allowfullscreen>
45+
# </iframe>
46+
47+
48+
1349
# Required imports
1450
import gempy as gp
1551
import gempy_viewer as gpv
@@ -57,6 +93,17 @@
5793
# Video tutorial 3: Structural frame
5894
# """"""""""""""""""""""""""""""""""
5995

96+
# %%
97+
#.. raw:: html
98+
#
99+
# <iframe width="560" height="315"
100+
# src="https://www.youtube.com/embed/4rav3lb2AR8"
101+
# title="YouTube video player"
102+
# frameborder="0"
103+
# allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
104+
# allowfullscreen>
105+
# </iframe>
106+
60107
# View structural frame
61108
geo_model.structural_frame
62109

@@ -176,4 +223,6 @@
176223
# %%
177224

178225
# Display the 3d model with topography
179-
gpv.plot_3d(geo_model, show_lith=True, show_topography=True)
226+
gpv.plot_3d(geo_model, show_lith=True, show_topography=True)
227+
228+
# sphinx_gallery_thumbnail_number = -1

0 commit comments

Comments
 (0)