From 88ce3932bb36f232deaa4ae718df1ded0c1900aa Mon Sep 17 00:00:00 2001 From: JupyterHub User <1myhisij@jupyter.rwth-aachen.de> Date: Thu, 7 Sep 2023 08:26:06 +0000 Subject: [PATCH] fixed errors while specifing path with f-strings --- hp4155/measurements.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hp4155/measurements.py b/hp4155/measurements.py index 9b104c4..039a784 100644 --- a/hp4155/measurements.py +++ b/hp4155/measurements.py @@ -213,9 +213,9 @@ def ctlm(field_name ='M00',time='MED',start=-50*10**(-3),stop=50*10**(-3),step=1 date = str(datetime.today().replace(microsecond=0)) file_name = f"{field_name}_CTLM_{j+1}.txt" - #path = f"\\FILESERVER\public\Datentransfer\Asonitis, Alexandros\{file_name}" + path = f"\\FILESERVER\public\Datentransfer\Asonitis, Alexandros\_{file_name}" #export DataFrame to text file (keep header row and index column) - with open(file_n, 'a') as f: + with open(path, 'a') as f: f.write('title\n') df_string = df.to_string() f.write(df_string) -- GitLab