diff --git a/docs/examples/howto_meshlib/plot_bhe_mesh.py b/docs/examples/howto_meshlib/plot_bhe_mesh.py index a956ba13ec012511776fa237ddfe4cfc026c57d1..b95f8dfb14dbdccfbdf9558002ca71043c50b2f2 100644 --- a/docs/examples/howto_meshlib/plot_bhe_mesh.py +++ b/docs/examples/howto_meshlib/plot_bhe_mesh.py @@ -38,12 +38,7 @@ bhe_mesh( # %% msh2vtu( - msh_file, - output_path=tmp_dir, - rdcd=True, - ogs=True, - dim=[1, 3], - log_level="ERROR", + msh_file, output_path=tmp_dir, dim=[1, 3], reindex=True, log_level="ERROR" ) # %% [markdown] @@ -69,11 +64,3 @@ p.add_mesh( ) p.add_mesh(bhe_line, color="r", line_width=3) p.show() - -# sphinx_gallery_start_ignore - -from shutil import rmtree # noqa: E402 # pylint: disable=C0413, C0411 - -rmtree(tmp_dir) - -# sphinx_gallery_end_ignore diff --git a/docs/examples/howto_studies/plot_convergence_study_nuclear_decay.py b/docs/examples/howto_studies/plot_convergence_study_nuclear_decay.py index e20fcc28f1ef1eaa84e69fa1de8a8c1674487127..24779a10a9b95f6a0a3f057728bdc5f67c6cee5c 100644 --- a/docs/examples/howto_studies/plot_convergence_study_nuclear_decay.py +++ b/docs/examples/howto_studies/plot_convergence_study_nuclear_decay.py @@ -30,7 +30,6 @@ created: # %% from pathlib import Path -from shutil import rmtree from tempfile import mkdtemp import matplotlib.pyplot as plt @@ -184,11 +183,3 @@ fig = studies.convergence.plot_convergence_error_evolution( # %% fig = studies.convergence.plot_convergence_order_evolution(evolution_metrics) - -# sphinx_gallery_start_ignore - -# Removing the created files to keep the code repository clean for developers. -# If you want to use the created jupyter notebook further, skip this step. -rmtree(temp_dir) - -# sphinx_gallery_end_ignore diff --git a/docs/examples/howto_studies/plot_convergence_study_steady_state_diffusion.py b/docs/examples/howto_studies/plot_convergence_study_steady_state_diffusion.py index 09903d4858aae49be60863fa6432fa7a11b807ef..e97648d394654a063cea99f18938d020f8b7d1c2 100644 --- a/docs/examples/howto_studies/plot_convergence_study_steady_state_diffusion.py +++ b/docs/examples/howto_studies/plot_convergence_study_steady_state_diffusion.py @@ -32,7 +32,6 @@ First, the required packages are imported and an output directory is created: # %% from pathlib import Path -from shutil import rmtree from tempfile import mkdtemp from IPython.display import HTML @@ -63,9 +62,7 @@ for n_edge_cells in edge_cells: meshlib.gmsh_meshing.rect( n_edge_cells=n_edge_cells, structured_grid=True, out_name=msh_path ) - msh2vtu.msh2vtu( - input_filename=msh_path, output_path=temp_dir, log_level="ERROR" - ) + msh2vtu.msh2vtu(filename=msh_path, output_path=temp_dir, log_level="ERROR") model = ogs.OGS( PROJECT_FILE=temp_dir / "default.prj", @@ -135,13 +132,3 @@ convergence.run_convergence_study( refinement_ratio=2.0, ) HTML(workflow.jupyter_to_html(report_name, show_input=True)) - -# %% - -# sphinx_gallery_start_ignore - -# Removing the created files to keep the code repository clean for developers. -# If you want to use the created jupyter notebook further, skip this step. -rmtree(temp_dir) - -# sphinx_gallery_end_ignore