Skip to content

Commit

Permalink
Fix: Adds volume, area and belongs_to_zone attributes to new_obj (add…
Browse files Browse the repository at this point in the history
…ition of 2 zones)
  • Loading branch information
louisleroy5 committed Jul 16, 2019
1 parent 9e203ae commit 5eb9517
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions archetypal/template/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,14 @@ def combine(self, other):
'DaylightWorkplaneHeight',
weights),
DomesticHotWater=self.DomesticHotWater +
other.DomesticHotWater,
volume=self.volume + other.volume,
area=self.area + other.area)
other.DomesticHotWater)
new_obj = self.__class__(Name=name, **attr)
new_obj._volume = self.volume + other.volume
new_obj._area = self.area + other.area
attr['Conditioning']._belongs_to_zone = new_obj
attr['Constructions']._belongs_to_zone = new_obj
attr['Ventilation']._belongs_to_zone = new_obj
attr['DomesticHotWater']._belongs_to_zone = new_obj
return new_obj


Expand Down

0 comments on commit 5eb9517

Please sign in to comment.