Skip to content

Commit

Permalink
few more fixes on monthly data
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGoldwasser committed Nov 7, 2024
1 parent b2fe6a4 commit 138a2d8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions shared_resources/os_lib_reporting_bestest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def self.hourly_heating_cooling_table(model, sqlFile, runner)
end
end

runner.registerInfo("End of method, Adding values for heating and coooling on Febuary 1st and July 14th.")
runner.registerInfo("End of method, Adding values for heating and cooling on February 1st and July 14th.")
runner.registerValue("sens_htg_clg_0201",combined_hourly_0201.to_s)
runner.registerValue("sens_htg_clg_0714",combined_hourly_0714.to_s)

Expand Down Expand Up @@ -1120,6 +1120,7 @@ def self.monthly_htg_clg_table_section(model, sqlFile, runner, name_only = false
return @monthly_htg_clg_section
end

runner.registerInfo("Starting to get monthly heating and cooling data.")
months = ['January','February','March','April','May','June','July','August','September','October','November','December']
months.each do |month|

Expand Down Expand Up @@ -1184,11 +1185,11 @@ def self.monthly_htg_clg_table_section(model, sqlFile, runner, name_only = false
end
# time of peak
query = 'SELECT Value FROM tabulardatawithstrings WHERE '
query << "ReportName='BUILDING ENERGY PERFORMANCE - DISTRICT HEATING PEAK DEMAND' and "
query << "ReportName='BUILDING ENERGY PERFORMANCE - DISTRICT HEATING WATER PEAK DEMAND' and "
query << "ReportForString='Meter' and "
query << "TableName='Custom Monthly Report' and "
query << "RowName='#{month}' and "
query << "ColumnName LIKE '%DISTRICTHEATING:FACILITY {TIMESTAMP}%' and "
query << "ColumnName LIKE '%DISTRICTHEATINGWATER:FACILITY {TIMESTAMP}%' and "
query << "Units='';"
query_results = sqlFile.execAndReturnFirstString(query)
if query_results.empty?
Expand Down Expand Up @@ -1236,7 +1237,7 @@ def self.monthly_htg_clg_table_section(model, sqlFile, runner, name_only = false
end

# populated runnerRegisterValues for each column. Each is Jan-Dec
runner.registerInfo("Writing out Monthly heating and cooling values")
runner.registerInfo("Writing out monthly heating and cooling values")
runner.registerInfo("help: #{monthly_htg_cons.join(",")}")
runner.registerInfo("help2: #{monthly_clg_cons.join(",")}")
runner.registerValue("monthly_htg_cons",monthly_htg_cons.join(",")) #kWh
Expand Down

0 comments on commit 138a2d8

Please sign in to comment.