add weather region_codes

This commit is contained in:
Guille Gutierrez 2023-06-08 11:16:04 -04:00
parent 357e9f4a7e
commit 745c8f9080

View File

@ -72,7 +72,6 @@ class Control:
SimulationResults.__table__.create(bind=repository.engine, checkfirst=True)
city_file = "tests_data/FZK_Haus_LoD_2.gml"
weather_file = 'CAN_PQ_Montreal.Intl.AP.716270_CWEC.epw'
output_path = Path('tests_outputs/').resolve()
self._city = GeometryFactory('citygml',
city_file,
@ -84,6 +83,9 @@ class Control:
sra_file = str((output_path / f'{self._city.name}_sra.xml').resolve())
subprocess.run([self.sra, sra_file], stdout=subprocess.DEVNULL)
ResultFactory('sra', self._city, output_path).enrich()
for building in self._city.buildings:
building.energy_systems_archetype_name = 'system 1 gas pv'
EnergySystemsFactory('montreal_custom', self._city).enrich()