Skip to content

Commit

Permalink
always generate cooling defaults in simulated_load when load_type == …
Browse files Browse the repository at this point in the history
…cooling
  • Loading branch information
zolanaj committed Aug 29, 2023
1 parent 387b376 commit df0ff9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/simulated_load.jl
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,6 @@ function simulated_load(d::Dict)
throw(@error("Please supply a doe_reference_name and optional scaling parameters (annual_tonhour or monthly_tonhour)."))
end

# Get the default cooling load (used when we want cooling load without annual_tonhour input)
if !isnothing(cooling_doe_ref_name)
# Get the default cooling load (used when we want cooling load without annual_tonhour input) - using the cooling doe reference name
# Get the default electric load for the building(s), used for fractions
if typeof(doe_reference_name) <: Vector{} && length(doe_reference_name) > 1
Expand Down Expand Up @@ -381,6 +379,9 @@ function simulated_load(d::Dict)
existing_chiller_cop=chiller_cop,
existing_chiller_max_thermal_factor_on_peak_load=max_thermal_factor_on_peak_load
)
if isnothing(cooling_doe_ref_name)
cooling_doe_ref_name = doe_reference_name
end

if length(cooling_doe_ref_name) > 1
modified_fraction = []
Expand Down

0 comments on commit df0ff9c

Please sign in to comment.