Commit 864ba0e7 authored by Flavio TARSETTI's avatar Flavio TARSETTI Committed by Samuel Gaist
Browse files

[experiments] add verbosity for non plottable results

parent 5438dab3
Pipeline #20237 passed with stages
in 44 minutes and 1 second
......@@ -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
......
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