Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
batsim
batsim
Commits
b81c3b2e
Commit
b81c3b2e
authored
Jan 17, 2017
by
Millian Poquet
Browse files
[tools] jobID -> job_id
parent
c03dd9de
Changes
2
Hide whitespace changes
Inline
Side-by-side
tools/batsim_output_csv_to_swf.py
View file @
b81c3b2e
...
...
@@ -88,7 +88,7 @@ jobs = {}
reader
=
csv
.
DictReader
(
args
.
inputCSV
)
for
row
in
reader
:
job_id
=
int
(
row
[
"job
ID
"
])
job_id
=
int
(
row
[
"job
_id
"
])
submit_time
=
float
(
row
[
"submission_time"
])
nb_res
=
int
(
row
[
"requested_number_of_processors"
])
wall_time
=
float
(
row
[
"requested_time"
])
...
...
tools/swf_to_batsim_output_csv.py
View file @
b81c3b2e
...
...
@@ -169,7 +169,7 @@ for event in events:
##############
writer
=
csv
.
DictWriter
(
args
.
outputCSV
,
fieldnames
=
[
"job
ID
"
,
fieldnames
=
[
"job
_id
"
,
"submission_time"
,
"requested_number_of_processors"
,
"requested_time"
,
...
...
@@ -187,7 +187,7 @@ writer.writeheader()
for
job_id
in
jobs
:
job
=
jobs
[
job_id
]
d
=
{
"job
ID
"
:
job
.
job_id
,
d
=
{
"job
_id
"
:
job
.
job_id
,
"submission_time"
:
job
.
submit_time
,
"requested_number_of_processors"
:
job
.
nb_res
,
"requested_time"
:
job
.
wall_time
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment