Skip to content

Commit

Permalink
Bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
shorowit committed Dec 12, 2023
1 parent 0c8a32a commit 181902e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/energy_rating_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def get_eec(system, type, is_dfhp_primary = nil)
elsif rated_sys.respond_to? :integrated_heating_system_fraction_heat_load_served
fraction_heat_load_served = rated_sys.integrated_heating_system_fraction_heat_load_served
end
next if fraction_heat_load_served.nil?
next if fraction_heat_load_served.to_f <= 0

# Get corresponding Reference Home system
ref_sys = reg_bldg.hvac_systems.select { |h| h.respond_to?(:htg_seed_id) && (h.htg_seed_id == rated_sys.htg_seed_id) }[0]
Expand All @@ -437,7 +437,7 @@ def get_eec(system, type, is_dfhp_primary = nil)
if rated_sys.respond_to? :fraction_cool_load_served
fraction_cool_load_served = rated_sys.fraction_cool_load_served
end
next if fraction_cool_load_served.nil?
next if fraction_cool_load_served.to_f <= 0

# Get corresponding Reference Home system
ref_sys = reg_bldg.hvac_systems.select { |h| h.respond_to?(:clg_seed_id) && (h.clg_seed_id == rated_sys.clg_seed_id) }[0]
Expand Down

0 comments on commit 181902e

Please sign in to comment.