From 0b3b9bb6da09bd52e2adafa749b1d8baf55801f3 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 16 Jan 2024 14:39:24 +0100 Subject: [PATCH] [py] ruff fixes in web/content/docs/tutorials/bhe_meshing/notebook-bhe_meshing.md. --- .../docs/tutorials/bhe_meshing/notebook-bhe_meshing.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/content/docs/tutorials/bhe_meshing/notebook-bhe_meshing.md b/web/content/docs/tutorials/bhe_meshing/notebook-bhe_meshing.md index b2dfb3f35db..6bcd356bb6f 100644 --- a/web/content/docs/tutorials/bhe_meshing/notebook-bhe_meshing.md +++ b/web/content/docs/tutorials/bhe_meshing/notebook-bhe_meshing.md @@ -246,7 +246,8 @@ check_file = os.path.isfile(f"{out_dir}/{bhe_mesh_file_name}.msh") if check_file: print("Creation of BHE mesh in Gmsh format was successful.") else: - raise Exception("Error! Gmsh file is not properly created in the BHE meshing tutorial.") + msg = "Error! Gmsh file is not properly created in the BHE meshing tutorial." + raise Exception(msg) ``` In this step, we will investigate the number of nodes, lines, prisms, and Material ID of the created mesh file, to validate if it is created properly for simulation. @@ -287,5 +288,6 @@ check_file = os.path.isfile(f"{out_dir}/{bhe_mesh_file_name}.vtu") if check_file: print("Conversion of mesh file from Gmsh to VTU format was successful.") else: - raise Exception("Error! Gmsh file is not properly converted to VTU format in the BHE meshing tutorial.") + msg = "Error! Gmsh file is not properly converted to VTU format in the BHE meshing tutorial." + raise Exception(msg) ``` -- GitLab