Skip to content

Commit

Permalink
Fix monthly cooling input type conversion
Browse files Browse the repository at this point in the history
and make monthly heating type conversions consistent with other inputs
  • Loading branch information
Bill-Becker committed Aug 22, 2023
1 parent df43c89 commit 9fa7f7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/heating_cooling_loads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ function BuiltInDomesticHotWaterLoad(
annual_mmbtu *= addressable_load_fraction
end
if length(monthly_mmbtu) == 12
monthly_mmbtu = convert(Vector{Real}, monthly_mmbtu) .* addressable_load_fraction
monthly_mmbtu = monthly_mmbtu .* addressable_load_fraction
end
built_in_load("domestic_hot_water", city, buildingtype, year, annual_mmbtu, monthly_mmbtu)
end
Expand Down Expand Up @@ -1075,7 +1075,7 @@ function BuiltInSpaceHeatingLoad(
annual_mmbtu *= addressable_load_fraction
end
if length(monthly_mmbtu) == 12
monthly_mmbtu = convert(Vector{Real}, monthly_mmbtu) .* addressable_load_fraction
monthly_mmbtu = monthly_mmbtu .* addressable_load_fraction
end
built_in_load("space_heating", city, buildingtype, year, annual_mmbtu, monthly_mmbtu)
end
Expand Down
3 changes: 2 additions & 1 deletion src/core/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ function dictkeys_tosymbols(d::Dict)
"emissions_factor_series_lb_SO2_per_kwh",
"emissions_factor_series_lb_PM25_per_kwh",
#for ERP
"pv_production_factor_series", "battery_starting_soc_series_fraction"
"pv_production_factor_series", "battery_starting_soc_series_fraction",
"monthly_mmbtu", "monthly_tonhour"
] && !isnothing(v)
try
v = convert(Array{Real, 1}, v)
Expand Down

0 comments on commit 9fa7f7a

Please sign in to comment.