Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1110: Print NameError to reduce confusion
[csit.git]
/
resources
/
tools
/
presentation
/
generator_plots.py
diff --git
a/resources/tools/presentation/generator_plots.py
b/resources/tools/presentation/generator_plots.py
index
b7fd420
..
d89d68f
100644
(file)
--- a/
resources/tools/presentation/generator_plots.py
+++ b/
resources/tools/presentation/generator_plots.py
@@
-39,9
+39,9
@@
def generate_plots(spec, data):
try:
logging.info(" Plot nr {0}:".format(index + 1))
eval(plot["algorithm"])(plot, data)
try:
logging.info(" Plot nr {0}:".format(index + 1))
eval(plot["algorithm"])(plot, data)
- except NameError:
- logging.error("
The algorithm '{0}' is not defined.
".
- format(
plot["algorithm"]
))
+ except NameError
as err
:
+ logging.error("
Probably algorithm '{alg}' is not defined: {err}
".
+ format(
alg=plot["algorithm"], err=repr(err
))
logging.info("Done.")
logging.info("Done.")
@@
-59,6
+59,8
@@
def plot_performance_box(plot, input_data):
format(plot.get("title", "")))
# Transform the data
format(plot.get("title", "")))
# Transform the data
+ logging.info(" Creating the data set for the {0} '{1}'.".
+ format(plot.get("type", ""), plot.get("title", "")))
data = input_data.filter_data(plot)
if data is None:
logging.error("No data.")
data = input_data.filter_data(plot)
if data is None:
logging.error("No data.")
@@
-129,6
+131,8
@@
def plot_latency_box(plot, input_data):
format(plot.get("title", "")))
# Transform the data
format(plot.get("title", "")))
# Transform the data
+ logging.info(" Creating the data set for the {0} '{1}'.".
+ format(plot.get("type", ""), plot.get("title", "")))
data = input_data.filter_data(plot)
if data is None:
logging.error("No data.")
data = input_data.filter_data(plot)
if data is None:
logging.error("No data.")
@@
-236,6
+240,8
@@
def plot_throughput_speedup_analysis(plot, input_data):
format(plot.get("title", "")))
# Transform the data
format(plot.get("title", "")))
# Transform the data
+ logging.info(" Creating the data set for the {0} '{1}'.".
+ format(plot.get("type", ""), plot.get("title", "")))
data = input_data.filter_data(plot)
if data is None:
logging.error("No data.")
data = input_data.filter_data(plot)
if data is None:
logging.error("No data.")
@@
-335,6
+341,8
@@
def plot_http_server_performance_box(plot, input_data):
format(plot.get("title", "")))
# Transform the data
format(plot.get("title", "")))
# Transform the data
+ logging.info(" Creating the data set for the {0} '{1}'.".
+ format(plot.get("type", ""), plot.get("title", "")))
data = input_data.filter_data(plot)
if data is None:
logging.error("No data.")
data = input_data.filter_data(plot)
if data is None:
logging.error("No data.")