When adding the following code to python_magnetrun.py and running it for 'M9_Archive_240509-1634.tdms':
if args.command == "export":
#python -m python_magnetrun.python_magnetrun [path] export
for file in args.input_file:
title = os.path.basename(file)
f_extension = os.path.splitext(file)[-1]
name = os.path.splitext(file)[0]
mrun: MagnetRun = inputs[file]["data"]
mdata = mrun.getMData()
to_extract = ["Courants_Alimentations","Tensions_Aimant"]
for key in to_extract:
if key in mdata.Data:
pd.DataFrame({key: [mdata.Data[key]]}).to_csv(f"data/{key}_test.csv", index=False)
I obtain a csv that seems to contain only a "print" of tha data. The dots "..." we can see in the screenshot are replacing all the data:

When adding the following code to python_magnetrun.py and running it for 'M9_Archive_240509-1634.tdms':
I obtain a csv that seems to contain only a "print" of tha data. The dots "..." we can see in the screenshot are replacing all the data:
