From a4feaf288fa90848b6a88fdce6ad64a83454147d Mon Sep 17 00:00:00 2001
From: Max Jaeschke <max.jaeschke@htwk-leipzig.de>
Date: Tue, 8 Oct 2024 07:37:30 +0200
Subject: [PATCH] Black formatting for pre commit

---
 .../read_values_from_prj_curve.py             | 30 ++++++++++---------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/Tests/Data/Parabolic/T/3D_Beier_sandbox/read_values_from_prj_curve.py b/Tests/Data/Parabolic/T/3D_Beier_sandbox/read_values_from_prj_curve.py
index c487e1cb9f2..9687f41ede6 100644
--- a/Tests/Data/Parabolic/T/3D_Beier_sandbox/read_values_from_prj_curve.py
+++ b/Tests/Data/Parabolic/T/3D_Beier_sandbox/read_values_from_prj_curve.py
@@ -7,25 +7,27 @@ import numpy as np
 file = inspect.getfile(inspect.currentframe())
 prj_path = os.path.split(os.path.realpath(file))[0]
 
-#read prj-data
-tree = ET.parse(prj_path + '/beier_sandbox.prj')
+# read prj-data
+tree = ET.parse(prj_path + "/beier_sandbox.prj")
 root = tree.getroot()
 
-curve_elements = root.findall('.//curve')
+curve_elements = root.findall(".//curve")
 for curve in curve_elements:
-
-    curve_name = curve.find('name').text
+    curve_name = curve.find("name").text
 
     # read coordinates
-    coords_element = curve.find('coords')
-    coords_text = coords_element.text #replace("\n", "    ")
-    coords_array = np.fromstring(coords_text, dtype=float, sep='    ')
+    coords_element = curve.find("coords")
+    coords_text = coords_element.text  # replace("\n", "    ")
+    coords_array = np.fromstring(coords_text, dtype=float, sep="    ")
     # Store array in binary format
-    coords_array.astype('<f8').tofile(prj_path + f'/{curve_name}_coords.bin') # < - little Endian | f - float | 8 - Bytes equal to 64bit(double)
-
+    coords_array.astype("<f8").tofile(
+        prj_path + f"/{curve_name}_coords.bin"
+    )  # < - little Endian | f - float | 8 - Bytes equal to 64bit(double)
 
     # read values
-    values_element = curve.find('values')
-    values_text = values_element.text #replace("\n", "    ")
-    values_array = np.fromstring(values_text, dtype=float, sep='    ')
-    values_array.astype('<f8').tofile(prj_path + f'/{curve_name}_values.bin') # < - little Endian | f - float | 8 - Bytes equal to 64bit(double)
+    values_element = curve.find("values")
+    values_text = values_element.text  # replace("\n", "    ")
+    values_array = np.fromstring(values_text, dtype=float, sep="    ")
+    values_array.astype("<f8").tofile(
+        prj_path + f"/{curve_name}_values.bin"
+    )  # < - little Endian | f - float | 8 - Bytes equal to 64bit(double)
-- 
GitLab