changes in test c40 for weather
This commit is contained in:
parent
c7ebce49b7
commit
826c5e566c
|
@ -32,6 +32,8 @@ class MyTestCase(TestCase):
|
|||
|
||||
def test_c40_enrichment(self):
|
||||
file = 'C40_Final.gml'
|
||||
base_path = (Path(__file__).parent.parent / 'data' / 'weather').resolve()
|
||||
weather_file_name = 'CAN_PQ_Montreal.Intl.AP.716270_CWEC.epw'
|
||||
city = self._get_citygml(file)
|
||||
for building in city.buildings:
|
||||
for tz in building.thermal_zones:
|
||||
|
@ -41,11 +43,11 @@ class MyTestCase(TestCase):
|
|||
for opening in tb.thermal_openings:
|
||||
opening.hi = 10
|
||||
opening.he = 25
|
||||
building.function = 'residential'
|
||||
ConstructionFactory('nrel', city).enrich()
|
||||
for building in city.buildings:
|
||||
print(building.name, building.function, len(building.surfaces))
|
||||
for thermal_zone in building.thermal_zones:
|
||||
print(thermal_zone.volume)
|
||||
print(building.volume)
|
||||
|
||||
# WeatherFactory('epw', city).enrich()
|
||||
# ExportsFactory('idf', city, 'c:\Documents\idf').export()
|
||||
WeatherFactory('epw', city, base_path=base_path, file_name=weather_file_name).enrich()
|
||||
#ExportsFactory('idf', city, 'c:\Documents\idf').export()
|
Loading…
Reference in New Issue
Block a user