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
beat
beat.cmdline
Commits
864ba0e7
Commit
864ba0e7
authored
May 16, 2018
by
Flavio TARSETTI
Committed by
Samuel Gaist
May 16, 2018
Browse files
[experiments] add verbosity for non plottable results
parent
5438dab3
Pipeline
#20237
passed with stages
in 44 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/experiments.py
View file @
864ba0e7
...
...
@@ -512,6 +512,7 @@ def plot(webapi, configuration, prefix, names, remote_results, show, force, inde
os
.
mkdir
(
os
.
path
.
join
(
configuration
.
path
,
outputfolder
))
output_folder
=
os
.
path
.
join
(
configuration
.
path
,
outputfolder
)
check_plottable
=
False
if
not
os
.
path
.
exists
(
configuration
.
cache
)
or
remote_results
:
experiment
=
simplejson
.
loads
(
simplejson
.
dumps
(
common
.
fetch_object
(
webapi
,
"experiment"
,
name
,
[
'results'
])))
results
=
experiment
[
'results'
][
'analysis'
]
...
...
@@ -525,6 +526,7 @@ def plot(webapi, configuration, prefix, names, remote_results, show, force, inde
output_name
,
None
,
indentation
+
2
,
format_cache
)
status
+=
pl_status
status
+=
plot_status
check_plottable
=
True
else
:
# make sure experiment exists locally or pull it
experiments
=
pull
(
webapi
,
configuration
.
path
,
[
name
],
force
,
indentation
,
format_cache
)
...
...
@@ -569,6 +571,9 @@ def plot(webapi, configuration, prefix, names, remote_results, show, force, inde
data
.
as_dict
()[
the_data
],
output_name
,
None
,
indentation
+
2
,
format_cache
)
status
+=
pl_status
status
+=
plot_status
check_plottable
=
True
if
not
check_plottable
:
print
(
'Experiments results are not plottable'
)
return
status
...
...
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