lib/tbd/psi.rb in tbd-3.2.0 vs lib/tbd/psi.rb in tbd-3.2.1

- old
+ new

@@ -973,12 +973,13 @@ free = heat[:spt] && heat[:spt] < -40 && cool[:spt] && cool[:spt] > 40 surface[:conditioned] = false if free end end - surface[:heating] = heat[:spt] if heat[:spt] # if valid heating setpoints - surface[:cooling] = cool[:spt] if cool[:spt] # if valid cooling setpoints + # Recover if valid setpoints. + surface[:heating] = heat[:spt] if heat && heat[:spt] + surface[:cooling] = cool[:spt] if cool && cool[:spt] tbd[:surfaces][s.nameString] = surface end # (opaque) surfaces populated return empty("TBD surfaces", mth, ERR, tbd) if tbd[:surfaces].empty? @@ -1484,10 +1485,10 @@ balcony = true if shades.key?(i) end edge[:surfaces].keys.each do |i| break if is[:rimjoist] || is[:balcony] - break unless deratables.size == 2 + break unless deratables.size > 0 break if floors.key?(id) next if i == id next unless floors.key?(i) next unless floors[i].key?(:conditioned) next unless floors[i][:conditioned]