summaryrefslogtreecommitdiff
path: root/report/report_content.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-05-23 10:59:34 +0200
committermguetlein <martin.guetlein@gmail.com>2011-05-23 10:59:34 +0200
commit63389a0844313428899cbdb3d7cda4042fd0adc1 (patch)
tree846fbddfd8e7b3302852505e7ed8e290e0f38912 /report/report_content.rb
parent86a1d1e5fda994bc318100963b5fe7af3da24a53 (diff)
fix for plot-zoom feature
Diffstat (limited to 'report/report_content.rb')
-rwxr-xr-xreport/report_content.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/report/report_content.rb b/report/report_content.rb
index a8b700b..d60f700 100755
--- a/report/report_content.rb
+++ b/report/report_content.rb
@@ -151,7 +151,8 @@ class Reports::ReportContent
@xml_report.add_imagefigure(section_regr, image_title, plot_png[:name], "PNG", 100, plot_svg[:name])
rescue Exception => ex
LOGGER.error("Could not create regression plot: "+ex.message)
- rm_tmp_file(plot_file_name)
+ rm_tmp_file(plot_png[:name])
+ rm_tmp_file(plot_svg[:name])
@xml_report.add_paragraph(section_regr, "could not create regression plot: "+ex.message)
end
else
@@ -184,8 +185,9 @@ class Reports::ReportContent
@xml_report.add_imagefigure(section_roc, image_title, plot_png[:name], "PNG", 100, plot_svg[:name])
rescue Exception => ex
msg = "WARNING could not create roc plot for class value '"+accept_value.to_s+"': "+ex.message
- #LOGGER.error(msg)
- rm_tmp_file(plot_file_name)
+ LOGGER.error(msg)
+ rm_tmp_file(plot_png[:name])
+ rm_tmp_file(plot_svg[:name])
@xml_report.add_paragraph(section_roc, msg)
end
else
@@ -220,7 +222,8 @@ class Reports::ReportContent
rescue Exception => ex
msg = "WARNING could not create confidence plot: "+ex.message
LOGGER.error(msg)
- rm_tmp_file(plot_file_name)
+ rm_tmp_file(plot_png[:name])
+ rm_tmp_file(plot_svg[:name])
@xml_report.add_paragraph(section_conf, msg)
end
else