Skip to content

Commit

Permalink
Update get_SWH_uses_associated_with_each_building_segment.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KarenWGard authored Jul 26, 2024
1 parent d6cb177 commit c2b73d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Returns:
- **swh_uses**: A list containing the ids of all service water heating uses associated with a building segment

Function Call:
- get_component_by_ID
- get_obj_by_id

Data Lookup: None

Logic:
- get the building segment: `building_segment = get_component_by_ID(RMD, building_segment_id)`
- get the building segment: `building_segment = get_obj_by_id(RMD, building_segment_id)`
- create a blank list: `swh_uses = []`
- look at each swh use: `for swh_use in building_segment.service_water_heating_uses:`
- append the use to the list: `swh_uses.append(swh_use)`
Expand Down

0 comments on commit c2b73d1

Please sign in to comment.