Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
uyegy
CPUnetPLOT
Commits
6a3082aa
Commit
6a3082aa
authored
Aug 22, 2014
by
Mario Hock
Browse files
FIX: don't crash on missing -e ENV parameters
also: correctly display multi-line ENV parameter results
parent
343dd7e5
Changes
1
Show whitespace changes
Inline
Side-by-side
summary.py
View file @
6a3082aa
...
...
@@ -206,7 +206,17 @@ class LogAnalyzer:
if
(
env
):
env_head
=
self
.
cnl_file
.
get_environment
()
for
e
in
env
:
head
.
append
(
'{}: {}'
.
format
(
e
,
pretty_json
(
env_head
[
e
]))
)
json
=
env_head
.
get
(
e
)
if
(
json
):
text
=
pretty_json
(
json
)
it
=
iter
(
text
.
split
(
"
\n
"
))
# first line
head
.
append
(
'{}: {}'
.
format
(
e
,
next
(
it
))
)
# subsequent lines (if any)
for
line
in
it
:
head
.
append
(
line
)
head
.
append
(
"Duration: {}"
.
format
(
human_readable_from_seconds
(
self
.
experiment_duration
))
)
...
...
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