Skip to content

Commit 5498214

Browse files
committed
- [BUG] Revert code to this morning
1 parent 252c090 commit 5498214

File tree

4 files changed

+33
-32
lines changed

4 files changed

+33
-32
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- main
9+
- fixing-docs
910
release:
1011
types:
1112
- published

examples/examples/gempy_model.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@
22
Reading Simple GemPy model in Subsurface
33
========================================
44
"""
5-
#
6-
# import sys
7-
#
8-
# sys.path.insert(0, 'subsurface/')
9-
# import pooch
10-
# import subsurface as ss
11-
# import subsurface.reader.read_netcdf
12-
#
13-
# # %% md
14-
# # Single surface
15-
# # --------------
16-
#
17-
# # Pull gempy model
18-
# model_files = pooch.retrieve(
19-
# url="https://github.com/cgre-aachen/gempy_data/raw/master/"
20-
# "data/subsurface/example1.zip",
21-
# known_hash="fb79a63eeb874cf0cdca557106c62c67eace23811db5935e57c3448fed7f8978",
22-
# processor=pooch.Unzip()
23-
# )
24-
#
25-
# # %%
26-
# fname, = [i for i in model_files if "meshes.nc" in i]
27-
# dataset = ss.reader.read_netcdf.read_unstruct(fname)
28-
#
5+
6+
import sys
7+
8+
sys.path.insert(0, 'subsurface/')
9+
import pooch
10+
import subsurface as ss
11+
import subsurface.reader.read_netcdf
12+
13+
# %% md
14+
# Single surface
15+
# --------------
16+
17+
# Pull gempy model
18+
model_files = pooch.retrieve(
19+
url="https://github.com/cgre-aachen/gempy_data/raw/master/"
20+
"data/subsurface/example1.zip",
21+
known_hash="fb79a63eeb874cf0cdca557106c62c67eace23811db5935e57c3448fed7f8978",
22+
processor=pooch.Unzip()
23+
)
24+
2925
# # %%
30-
# obj = ss.TriSurf(dataset)
31-
# print(obj.mesh.points_attributes_to_dict)
32-
#
33-
# mesh = ss.visualization.to_pyvista_mesh(obj)
34-
# ss.visualization.pv_plot([mesh])
35-
#
26+
fname, = [i for i in model_files if "meshes.nc" in i]
27+
dataset = ss.reader.read_netcdf.read_unstruct(fname)
28+
29+
# %%
30+
obj = ss.TriSurf(dataset)
31+
print(obj.mesh.points_attributes_to_dict)
32+
33+
mesh = ss.visualization.to_pyvista_mesh(obj)
34+
ss.visualization.pv_plot([mesh])
35+
3636
#
3737
# # %% md
3838
# # Four Layers

examples/getting_started/getting_started.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
===============
44
"""
55

6-
# %%md
6+
#%%md
77
# Authors: Miguel de la Varga and Alexander Juestel
88
#
99
# This example shows how to read into subsurface structures a bunch of different

requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
-r requirements_opt.txt
44

55
# FOR DOCUMENTATION
6-
sphinx
6+
sphinx~=3.5
77
sphinx_gallery
88
sphinx_rtd_theme
99
sphinx_automodapi

0 commit comments

Comments
 (0)