to_dict#

module wntr.network.io

to_dict(wn)[source]#

Convert a WaterNetworkModel into a dictionary

Parameters:

wn (WaterNetworkModel) – Water network model

Returns:

Dictionary representation of the WaterNetworkModel

Return type:

dict