Commit 1be11881 authored by Brewer, Wes's avatar Brewer, Wes
Browse files

Output schedule_history to csv file

parent ea0de300
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -156,11 +156,6 @@ try:
except:
    print(output_stats)

# Schedule history
pd.set_option('display.max_columns', None)
pd.set_option('display.max_rows', None)
schedule_history = pd.DataFrame(sc.get_history())
print(schedule_history)

if args.plot:
    if 'power' in args.plot:
@@ -231,6 +226,10 @@ if args.output:
        df = pd.DataFrame(sc.sys_util_history)
        df.to_parquet(OPATH / 'util.parquet', engine='pyarrow')

        # Schedule history
        schedule_history = pd.DataFrame(sc.get_history())
        schedule_history.to_csv(OPATH / "schedule_history.csv", index=False)

        try:
            with open(OPATH / 'stats.out', 'w') as f:
                json.dump(output_stats, f, indent=4)