Skip to content

Commit cd5f09b

Browse files
committed
Merge branch 'remove_jupyter_notebooks' into 'master'
Remove remaining jupyter notebooks See merge request ogs/ogs!5168
2 parents b3350d9 + 8009dbc commit cd5f09b

File tree

17 files changed

+1058
-2283
lines changed

17 files changed

+1058
-2283
lines changed

ProcessLib/ComponentTransport/Tests.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ endif()
864864

865865
if(NOT OGS_USE_PETSC AND NOT WIN32)
866866
NotebookTest(
867-
NOTEBOOKFILE Parabolic/ComponentTransport/ReactiveTransport/DecayChain/GlobalImplicitApproach/performance_measurements.ipynb
867+
NOTEBOOKFILE Parabolic/ComponentTransport/ReactiveTransport/DecayChain/GlobalImplicitApproach/performance_measurements.py
868868
RUNTIME 200
869869
SKIP_WEB
870870
)

ProcessLib/SteadyStateDiffusion/Tests.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ if(OGS_USE_MPI)
10511051
NotebookTest(NOTEBOOKFILE Notebooks/SimplePETSc.py RUNTIME 10)
10521052
else()
10531053
NotebookTest(
1054-
NOTEBOOKFILE Elliptic/cube_1x1x1_SteadyStateDiffusion/ssd-cube.ipynb
1054+
NOTEBOOKFILE Elliptic/cube_1x1x1_SteadyStateDiffusion/ssd-cube.py
10551055
RUNTIME 6
10561056
)
10571057
endif()

Tests/Data/Elliptic/cube_1x1x1_SteadyStateDiffusion/ssd-cube.ipynb

Lines changed: 0 additions & 118 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# ---
2+
# jupyter:
3+
# jupytext:
4+
# text_representation:
5+
# extension: .py
6+
# format_name: percent
7+
# format_version: '1.3'
8+
# jupytext_version: 1.14.5
9+
# kernelspec:
10+
# display_name: Python 3 (ipykernel)
11+
# language: python
12+
# name: python3
13+
# ---
14+
15+
# %% [raw]
16+
# +++
17+
# title = "SteadyStateDiffusion Cube Test"
18+
# date = "2021-11-09"
19+
# author = "Lars Bilke"
20+
# web_subsection = "elliptic"
21+
# draft = true
22+
# +++
23+
#
24+
25+
# %% [markdown]
26+
# This notebook is just for testing and does not show up on the web page because `draft = true` in the metadata.
27+
28+
# %%
29+
import os
30+
from pathlib import Path
31+
32+
import pyvista as pv
33+
34+
# %%
35+
# On CI out_dir is set to the notebooks directory inside the build directory
36+
# similar to regular benchmark tests. On local testing it will output to the
37+
# notebooks source directory under a _out-subdirectory.
38+
out_dir = Path(os.environ.get("OGS_TESTRUNNER_OUT_DIR", "_out"))
39+
if not out_dir.exists():
40+
out_dir.mkdir(parents=True)
41+
42+
if "CI" in os.environ:
43+
pv.set_jupyter_backend("static")
44+
else:
45+
pv.set_jupyter_backend("client")
46+
47+
48+
# %%
49+
resolution = "2e4"
50+
# ! ogs cube_{resolution}.prj -o {out_dir} > {out_dir}/log.txt
51+
52+
53+
# %%
54+
reader = pv.get_reader(f"{out_dir}/cube_{resolution}.pvd")
55+
reader.set_active_time_value(1.0) # go to 1 s
56+
mesh = reader.read()[0]
57+
58+
plotter = pv.Plotter(notebook=True)
59+
plotter.add_mesh(mesh, scalars="v") # pressure
60+
plotter.show()

Tests/Data/Mechanics/EvaluatingBbarWithSimpleExamples/evaluating_bbbar_with_simple_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# display_name: Python 3 (ipykernel)
1111
# language: python
1212
# name: python3
13+
# note: 'TODO: remove after 6.5.4 release: ci skip'
1314
# ---
1415

1516
# %% [raw]

0 commit comments

Comments
 (0)