Skip to content

Commit

Permalink
SensorConfig: Add "junctions" property
Browse files Browse the repository at this point in the history
  • Loading branch information
andreArtelt committed Jan 13, 2025
1 parent 474f502 commit 3372ee0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions epyt_flow/simulation/sensor_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,22 @@ def links(self) -> list[str]:
"""
return self.__links.copy()

@property
def junctions(self) -> list[str]:
"""
Returns all junction IDs.
Returns
-------
`list[str]`
All juncitons IDs.
"""
junctions = self.nodes
for tank_id in self.tanks:
junctions.remove(tank_id)

return junctions

@property
def valves(self) -> list[str]:
"""
Expand Down

0 comments on commit 3372ee0

Please sign in to comment.