Commit 01a0fd79 authored by Agata Malgorzata Chadaj's avatar Agata Malgorzata Chadaj
Browse files

wip

parent 722a29b9
Pipeline #3175887 canceled with stage
......@@ -4,7 +4,7 @@ import pandas as pd
import argparse
import nbformat
from lhcsmapi import Time
from lhcsmapi.Time import Time
from lhcsmnb import outputs, parameters
def _get_arg_parser():
......@@ -32,7 +32,7 @@ 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, 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