modified the exports_factory.py and related files to add the building list to be calculated with SRA.

This commit is contained in:
Pilar 2021-09-02 12:30:36 -04:00
parent 6488a6690d
commit 9c9e6179f8

View File

@ -46,12 +46,12 @@ class SimplifiedRadiosityAlgorithm:
self._results = None
self._radiation = []
def call_sra(self, key, keep_files=False):
def call_sra(self, key, keep_files=False, selected_buildings=None):
"""
creates required input files and calls the software
"""
self._create_cli_file(key)
ExportsFactory('sra', self._city, self._tmp_path).export()
ExportsFactory('sra', self._city, self._tmp_path, selected_buildings).export()
try:
completed = subprocess.run([self._executable, str(Path(self._tmp_path / self._sra_in_file_name).resolve())])
except (SubprocessError, TimeoutExpired, CalledProcessError) as error: