Add atributes for constructions materials and layers

This commit is contained in:
Guille 2020-11-05 12:18:29 -05:00
parent 794f41262b
commit e535bf8280

View File

@ -56,7 +56,6 @@ class UsBasePhysicsParameters:
construction_type = UsToLibraryTypes.construction_types[thermal_boundary.type]
construction = UsBasePhysicsParameters._search_construction_in_archetype(archetype, construction_type)
construction_id = construction['@id']
print(construction)
c_lib = self._search_construction_type('construction', construction_id)
if 'outside_solar_absorptance' in c_lib:
@ -64,7 +63,7 @@ class UsBasePhysicsParameters:
thermal_boundary.outside_thermal_absorptance = c_lib['outside_thermal_absorptance']['#text']
thermal_boundary.outside_visible_absorptance = c_lib['outside_visible_absorptance']['#text']
thermal_boundary.window_ratio = construction['window_ratio']['#text']
thermal_boundary.construction_name = "todo"
thermal_boundary.construction_name = c_lib['@name']
thermal_boundary.layers = []
for current_layer in c_lib['layers']['layer']:
layer = Layer()