Skip to content

Commit

Permalink
Add return of generated building names
Browse files Browse the repository at this point in the history
  • Loading branch information
FWuellhorst committed Oct 4, 2024
1 parent d88bacf commit 5233305
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions teaser/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,10 @@ def add_non_residential_retrofit_combinations(
List of retrofit options to consider.
Defaults to ['standard', 'retrofit', 'adv_retrofit'].
Returns
-------
list: A list of names of the generated buildings.
Raises
------
ValueError: If unsupported elements or retrofit choices are provided, or if the
Expand All @@ -633,7 +637,7 @@ def add_non_residential_retrofit_combinations(
----
This function only works with TABULA DE or DK construction data.
"""
generate_buildings_for_all_element_combinations(
return generate_buildings_for_all_element_combinations(
project_add_building_function=self.add_non_residential,
add_building_function_kwargs=add_residential_kwargs,
elements=elements,
Expand Down Expand Up @@ -665,6 +669,10 @@ def add_residential_retrofit_combinations(
List of retrofit options to consider.
Defaults to ['standard', 'retrofit', 'adv_retrofit'].
Returns
-------
list: A list of names of the generated buildings.
Raises
------
ValueError: If unsupported elements or retrofit choices are provided, or if the
Expand All @@ -674,7 +682,7 @@ def add_residential_retrofit_combinations(
----
This function only works with TABULA DE or DK construction data.
"""
generate_buildings_for_all_element_combinations(
return generate_buildings_for_all_element_combinations(
project_add_building_function=self.add_residential,
add_building_function_kwargs=add_residential_kwargs,
elements=elements,
Expand Down

0 comments on commit 5233305

Please sign in to comment.