Commit b81c3b2e authored by Millian Poquet's avatar Millian Poquet
Browse files

[tools] jobID -> job_id

parent c03dd9de
...@@ -88,7 +88,7 @@ jobs = {} ...@@ -88,7 +88,7 @@ jobs = {}
reader = csv.DictReader(args.inputCSV) reader = csv.DictReader(args.inputCSV)
for row in reader: for row in reader:
job_id = int(row["jobID"]) job_id = int(row["job_id"])
submit_time = float(row["submission_time"]) submit_time = float(row["submission_time"])
nb_res = int(row["requested_number_of_processors"]) nb_res = int(row["requested_number_of_processors"])
wall_time = float(row["requested_time"]) wall_time = float(row["requested_time"])
......
...@@ -169,7 +169,7 @@ for event in events: ...@@ -169,7 +169,7 @@ for event in events:
############## ##############
writer = csv.DictWriter(args.outputCSV, writer = csv.DictWriter(args.outputCSV,
fieldnames=["jobID", fieldnames=["job_id",
"submission_time", "submission_time",
"requested_number_of_processors", "requested_number_of_processors",
"requested_time", "requested_time",
...@@ -187,7 +187,7 @@ writer.writeheader() ...@@ -187,7 +187,7 @@ writer.writeheader()
for job_id in jobs: for job_id in jobs:
job = jobs[job_id] job = jobs[job_id]
d = {"jobID" : job.job_id, d = {"job_id" : job.job_id,
"submission_time" : job.submit_time, "submission_time" : job.submit_time,
"requested_number_of_processors" : job.nb_res, "requested_number_of_processors" : job.nb_res,
"requested_time" : job.wall_time, "requested_time" : job.wall_time,
......
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