forked from s_ranjbar/city_retrofit
Add atributes for constructions materials and layers
This commit is contained in:
parent
794f41262b
commit
e535bf8280
|
@ -56,7 +56,6 @@ class UsBasePhysicsParameters:
|
||||||
construction_type = UsToLibraryTypes.construction_types[thermal_boundary.type]
|
construction_type = UsToLibraryTypes.construction_types[thermal_boundary.type]
|
||||||
construction = UsBasePhysicsParameters._search_construction_in_archetype(archetype, construction_type)
|
construction = UsBasePhysicsParameters._search_construction_in_archetype(archetype, construction_type)
|
||||||
construction_id = construction['@id']
|
construction_id = construction['@id']
|
||||||
print(construction)
|
|
||||||
|
|
||||||
c_lib = self._search_construction_type('construction', construction_id)
|
c_lib = self._search_construction_type('construction', construction_id)
|
||||||
if 'outside_solar_absorptance' in c_lib:
|
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_thermal_absorptance = c_lib['outside_thermal_absorptance']['#text']
|
||||||
thermal_boundary.outside_visible_absorptance = c_lib['outside_visible_absorptance']['#text']
|
thermal_boundary.outside_visible_absorptance = c_lib['outside_visible_absorptance']['#text']
|
||||||
thermal_boundary.window_ratio = construction['window_ratio']['#text']
|
thermal_boundary.window_ratio = construction['window_ratio']['#text']
|
||||||
thermal_boundary.construction_name = "todo"
|
thermal_boundary.construction_name = c_lib['@name']
|
||||||
thermal_boundary.layers = []
|
thermal_boundary.layers = []
|
||||||
for current_layer in c_lib['layers']['layer']:
|
for current_layer in c_lib['layers']['layer']:
|
||||||
layer = Layer()
|
layer = Layer()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user