Skip to content

Commit

Permalink
Merge branch 'issue99_ExportRelease' into v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PRemmen authored and PRemmen committed Jan 15, 2016
2 parents 815a654 + 3d33ad9 commit f569f4a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
8 changes: 4 additions & 4 deletions teaser/Logic/BuildingObjects/Building.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,13 +645,13 @@ def name(self):
def name(self, value):

if isinstance(value, str):
self.__name = value

self.__name = value.replace(" ", "")
else:
try:
value = str(value)
self.__name = value
self.__name = value.replace(" ", "")

except ValueError:
print("Can't convert name to string")

Expand Down
17 changes: 17 additions & 0 deletions teaser/Logic/BuildingObjects/BuildingPhysics/BuildingElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,23 @@ def set_calc_default(self):
self.r_outer_rad = 0.0
self.r_outer_comb = 0.0

@property
def name(self):
return self._name

@name.setter
def name(self, value):
if isinstance(value, str):

self._name = value.replace(" ", "")
else:
try:
value = str(value)
self._name = value.replace(" ", "")

except ValueError:
print("Can't convert name to string")

@property
def parent(self):
return self.__parent
Expand Down
18 changes: 17 additions & 1 deletion teaser/Logic/BuildingObjects/ThermalZone.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import collections
import random
import warnings
import numpy as np

class ThermalZone(object):
'''This class represents a Thermal Zone in a building
Expand Down Expand Up @@ -771,6 +770,23 @@ def parent(self, value):

self.__parent.thermal_zones.append(self)

@property
def name(self):
return self._name

@name.setter
def name(self, value):
if isinstance(value, str):

self._name = value.replace(" ", "")
else:
try:
value = str(value)
self._name = value.replace(" ", "")

except ValueError:
print("Can't convert name to string")

@property
def outer_walls(self):
return self._outer_walls
Expand Down

0 comments on commit f569f4a

Please sign in to comment.