Skip to content
Snippets Groups Projects
Commit c024cc90 authored by JupyterHub User's avatar JupyterHub User
Browse files

changed file name

parent 0e4e82f7
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,7 @@ def ctlm(field_name ='M00',start=-50*10**(-3),stop=50*10**(-3),step=10**(-3),com
#connect to the device
device = module.HP4155a('GPIB0::17::INSTR')
date = str(datetime.today().replace(microsecond=0))
#initilize figure
plt.figure()
......@@ -209,9 +210,8 @@ def ctlm(field_name ='M00',start=-50*10**(-3),stop=50*10**(-3),step=10**(-3),com
data = {header[0]:voltage_values,header[1]:current_values,header[2]:resisance_values}
df = pd.DataFrame(data)
print(df)
date = str(datetime.today().replace(microsecond=0))
file_name = f"{field_name}_CTLM_{j+1}.txt"
file_name = f"{field_name}_CTLM_{j+1}_{date}.txt"
path = f"\\FILESERVER\public\Datentransfer\Asonitis, Alexandros\_{file_name}"
#export DataFrame to text file (keep header row and index column)
with open(path, 'a') as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment