looking for a bug
This commit is contained in:
parent
0e7acd89d1
commit
06ecae7e88
|
@ -28,13 +28,9 @@ class NrelCatalog(Catalog):
|
|||
with open(archetypes_path) as xml:
|
||||
self._archetypes = xmltodict.parse(xml.read(), force_list=('archetype', 'construction'))
|
||||
self._catalog_windows = self._load_windows()
|
||||
print('windows', self._catalog_windows)
|
||||
self._catalog_materials = self._load_materials()
|
||||
print('materials', self._catalog_materials)
|
||||
self._catalog_constructions = self._load_constructions()
|
||||
print('constructions', self._catalog_constructions)
|
||||
self._catalog_archetypes = self._load_archetypes()
|
||||
print('archetypes', self._catalog_archetypes)
|
||||
|
||||
# store the full catalog data model in self._content
|
||||
self._content = Content(self._catalog_archetypes,
|
||||
|
|
|
@ -33,7 +33,6 @@ class UsPhysicsParameters(NrelPhysicsInterface):
|
|||
city = self._city
|
||||
for building in city.buildings:
|
||||
try:
|
||||
print(building.function, building.year_of_construction, self._climate_zone)
|
||||
archetype = self._search_archetype(building.function, building.year_of_construction, self._climate_zone)
|
||||
except KeyError:
|
||||
sys.stderr.write(f'Building {building.name} has unknown archetype for building function: {building.function} '
|
||||
|
|
Loading…
Reference in New Issue
Block a user