Skip to content

Commit

Permalink
Merge pull request #4345 from NREL/4046_ScheduleFile_Measure
Browse files Browse the repository at this point in the history
#4046 - Clarify the situation with output file in the ReportingMeasure Template
  • Loading branch information
tijcolem authored Jun 21, 2021
2 parents b60cbb1 + aae01b9 commit b0677c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utilities/bcl/templates/ReportingMeasure/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/<measure_class_name>_<filename>.html'
html_out_path = './report.html'
File.open(html_out_path, 'w') do |file|
file << html_out
Expand Down

0 comments on commit b0677c3

Please sign in to comment.