We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bed468 commit fd862ebCopy full SHA for fd862eb
wntr/network/io.py
@@ -258,6 +258,7 @@ def from_dict(d: dict, append=None):
258
v = wn.get_link(name)
259
if valve_type.lower() == "gpv":
260
v.headloss_curve_name = link.setdefault("headloss_curve_name")
261
+ v.vertices = link.setdefault("vertices", list())
262
# custom additional attributes
263
for attr in list(set(link.keys()) - set(dir(v))):
264
setattr( v, attr, link[attr] )
0 commit comments