Commit 06da42d8 authored by Agata Malgorzata Chadaj's avatar Agata Malgorzata Chadaj
Browse files

wip

parent 4fe3e2f1
Pipeline #3176162 passed with stage
in 28 seconds
......@@ -33,7 +33,7 @@ def get_result():
def save_data_to_file(data: dict):
file_path = '/eos/home-m/mpesoft/test.csv'
df = pd.DataFrame.from_dict(data)
df = pd.DataFrame([data])
with open(file_path, 'a') as f:
df.to_csv(f, mode='a', header=f.tell() == 0)
......@@ -44,8 +44,8 @@ if __name__ == '__main__':
all_data = {'notebook': args.notebook,
'circuit_name': args.circuit_name,
'discharge_level': args.discharge_level,
'start_time': str(Time.to_unix_timestamp(args.start_time)),
'end_time': str(Time.to_unix_timestamp(args.end_time)),
'start_time': Time.to_unix_timestamp(args.start_time),
'end_time': Time.to_unix_timestamp(args.end_time),
'status': flag,
'comment': text
}
......
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