You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
Attempting to run the to_gis() method on a WaterNetworkModel which contains leaks causes an Exception:
Exception has occurred: AttributeError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
'Junction' object has no attribute 'link_type'
Environment
Provide information on your computing environment.
Operating system: Ubuntu 22
Python version: 3.10
WNTR version: Latest fetch from main branch.
Additional context
The Exception appears to be caused because the str magic method in ControlAction assumes that _target_obj is a link. However, when a leak is added to a node a control is added with a _target_obj that points to a node rather than a link.
The text was updated successfully, but these errors were encountered:
Summary
Attempting to run the
to_gis()
method on a WaterNetworkModel which contains leaks causes an Exception:Example
Environment
Provide information on your computing environment.
Additional context
The Exception appears to be caused because the
str
magic method inControlAction
assumes that_target_obj
is a link. However, when a leak is added to a node a control is added with a_target_obj
that points to a node rather than a link.The text was updated successfully, but these errors were encountered: