Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ProfiT-HPC
aggregator
Commits
15b22837
Commit
15b22837
authored
Oct 10, 2019
by
Azat Khuziyakhmetov
Browse files
included recommendations to the output
parent
56cde4e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
data.py
View file @
15b22837
...
...
@@ -5,13 +5,7 @@ import argparse
import
db.aggregator
as
aggregator
import
conf.config
as
conf
from
format
import
format
def
print_job_info
(
job_id
,
type
):
aggr
=
aggregator
.
get_aggregator
(
job_id
,
type
)
formatted
=
format
.
format
(
aggr
,
type
)
print
(
json
.
dumps
(
formatted
))
from
rcm
import
rcm
def
main
():
parser
=
argparse
.
ArgumentParser
(
description
=
"""
...
...
@@ -28,7 +22,15 @@ def main():
args
=
parser
.
parse_args
()
job_id
=
args
.
JOBID
print_job_info
(
job_id
,
args
.
type
)
aggr
=
aggregator
.
get_aggregator
(
job_id
,
"pdf"
)
formatted
=
format
.
format
(
aggr
,
args
.
type
)
recommendations
=
rcm
.
get_recommendations
(
aggr
)
formatted
[
"recommendations"
]
=
recommendations
print
(
json
.
dumps
(
formatted
))
return
0
...
...
Write
Preview
Markdown
is supported
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