modified the exports_factory.py and related files to add the building list to be calculated with SRA.
This commit is contained in:
parent
6488a6690d
commit
9c9e6179f8
|
@ -46,12 +46,12 @@ class SimplifiedRadiosityAlgorithm:
|
||||||
self._results = None
|
self._results = None
|
||||||
self._radiation = []
|
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
|
creates required input files and calls the software
|
||||||
"""
|
"""
|
||||||
self._create_cli_file(key)
|
self._create_cli_file(key)
|
||||||
ExportsFactory('sra', self._city, self._tmp_path).export()
|
ExportsFactory('sra', self._city, self._tmp_path, selected_buildings).export()
|
||||||
try:
|
try:
|
||||||
completed = subprocess.run([self._executable, str(Path(self._tmp_path / self._sra_in_file_name).resolve())])
|
completed = subprocess.run([self._executable, str(Path(self._tmp_path / self._sra_in_file_name).resolve())])
|
||||||
except (SubprocessError, TimeoutExpired, CalledProcessError) as error:
|
except (SubprocessError, TimeoutExpired, CalledProcessError) as error:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user