Commit 06cf8090 authored by Samuel GAIST's avatar Samuel GAIST

[experiments] If no parameters found, print a warning and continue

parent 9afff27f
......@@ -638,11 +638,15 @@ def plot_impl(configuration, names, remote, show, output_folder):
"""Return the parameters for the given plotter"""
parameters_path = os.path.join(prefix, "plotterparameters")
with open(
os.path.join(parameters_path, plotter.name + ".json")
) as parameters_file:
declaration = simplejson.load(parameters_file)
return declaration["data"]
try:
with open(
os.path.join(parameters_path, plotter.name + ".json")
) as parameters_file:
declaration = simplejson.load(parameters_file)
return declaration["data"]
except FileNotFoundError:
logger.warning("Default parameters not found")
return {}
for exp_name, results in data_to_plot.items():
for result_name, result_data in results.items():
......
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