Skip to content

Commit 64aca7b

Browse files
committed
[ENH] Add LiquidEarth integration to 3D visualization tutorial
Enhanced 3D visualization tutorial by adding instructions on how to upload models to LiquidEarth, a new feature in GemPy v3. Improved error handling in the LiquidEarthAPI to better assist users when a space is not found. The option to create a new space when one does not exist was also added.
1 parent 281d4e8 commit 64aca7b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

examples/tutorials/ch1_fundamentals/ch1_7_3d_visualization.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import gempy_viewer as gpv
1111
from gempy import generate_example_model
1212
from gempy.core.data.enumerators import ExampleModel
13+
# sphinx_gallery_thumbnail_number = 2
1314

1415
# %%
1516
# Loading an example geomodel
@@ -52,19 +53,25 @@
5253
gpv.plot_3d(geo_model, image=False)
5354

5455
# %%
55-
# sphinx_gallery_thumbnail_number = 2
56+
# LiquidEarth Integration
57+
# ~~~~~~~~~~~~~~~~~~~~~~~
58+
# Beyond the classical plotting capabilities introduced in GemPy v3, users can now also upload models to LiquidEarth.
59+
# `LiquidEarth <https://www.terranigma-solutions.com/liquidearth>`_ is a collaborative platform designed for 3D visualization,
60+
# developed by many of the main `gempy` maintainers, with a strong focus on collaboration and sharing.
61+
# This makes it an excellent tool for sharing your models with others and viewing them across different platforms.
62+
# To upload a model to LiquidEarth, you must have an account and a user token. Once your model is uploaded,
63+
# you can easily share the link with anyone.
5664

5765
# %%
58-
# TODO Add explanation
5966
link = gpv.plot_to_liquid_earth(
6067
geo_model=geo_model,
61-
space_name="new_space_name",
68+
space_name="ch1_7_3d_visualization",
6269
file_name="gempy_model",
6370
user_token=None, # If None, it will try to grab it from the environment
64-
grab_link=True
71+
grab_link=True,
6572
)
6673

6774
print(f"Generated Link: {link}")
6875

6976
# %%
70-
# Now we can use `this link <https://liquidearth.app.link/c47a2e42-7ffa-4f3b-b432-eb9f292e1538>`_ to visualize the model in Liquid Earth.
77+
# Now we can use `this link <https://liquidearth.app.link/8TpmCHFGsYa>`_ to visualize the model in Liquid Earth.

0 commit comments

Comments
 (0)