Skip to content

Commit

Permalink
Warn that changing area won't change capacity in Tank
Browse files Browse the repository at this point in the history
Co-authored-by: barneydobson <barnaby.dobson1@gmail.com>
  • Loading branch information
liuly12 and barneydobson committed Mar 5, 2024
1 parent 1540c7f commit b9e7ec0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wsimod/nodes/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,8 @@ def apply_overrides(self, overrides: Dict[str, Any] = {}):
"""
self.capacity = overrides.pop("capacity",
self.capacity)
if "area" in overrides.keys():
print("warning: when overriding area, capacity is not automatically recalculated")
self.area = overrides.pop("area",
self.area)
self.datum = overrides.pop("datum",
Expand Down

0 comments on commit b9e7ec0

Please sign in to comment.