From aae01b996a4ec6c5c7ec6e9cd0cd3e2de966023e Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Thu, 3 Jun 2021 14:35:46 +0200 Subject: [PATCH] #4046 - Clarify the situation with output file in the ReportingMeasure Template In conjunction with https://github.com/NREL/OpenStudio-user-documentation/pull/25 --- src/utilities/bcl/templates/ReportingMeasure/measure.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utilities/bcl/templates/ReportingMeasure/measure.rb b/src/utilities/bcl/templates/ReportingMeasure/measure.rb index 4f9c91a357..e40fcaf906 100644 --- a/src/utilities/bcl/templates/ReportingMeasure/measure.rb +++ b/src/utilities/bcl/templates/ReportingMeasure/measure.rb @@ -177,7 +177,8 @@ def run(runner, user_arguments) renderer = ERB.new(html_in) html_out = renderer.result(binding) - # write html file + # write html file: any file named 'report*.*' in the current working directory + # will be copied to the ./reports/ folder as 'reports/_.html' html_out_path = './report.html' File.open(html_out_path, 'w') do |file| file << html_out