from_dict#

module wntr.network.io

from_dict(d, append=None)[source]#

Create or append a WaterNetworkModel from a dictionary

Parameters:
  • d (dict) – Dictionary representation of the water network model

  • append (WaterNetworkModel or None, optional) – Existing WaterNetworkModel to append. If None, a new WaterNetworkModel is created.

Return type:

WaterNetworkModel