Commit 4126aaed authored by Agata Malgorzata Chadaj's avatar Agata Malgorzata Chadaj
Browse files

wip

parent 01a0fd79
Pipeline #3175930 canceled with stage
......@@ -32,7 +32,9 @@ def get_result():
def save_json_to_file(args, flag, comment):
file_path = '/eos/home-m/mpesoft/' + ':'.join([args.notebook, args.circuit_name, args.discharge_level, Time.to_unix_timestamp(args.start_time), Time.to_unix_timestamp(args.end_time), flag]) + '.csv'
file_path = '/eos/home-m/mpesoft/' + ':'.join([args.notebook, args.circuit_name, str(args.discharge_level),
Time.to_unix_timestamp(args.start_time),
Time.to_unix_timestamp(args.end_time), flag]) + '.csv'
df = pd.DataFrame(eval(comment))
with open(file_path, 'a') as f:
df.to_csv(f, mode='a', header=f.tell() == 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment