read_json#

module wntr.msx.io

read_json(path_or_buf, **kw_json)[source]#

Create or append a WaterNetworkModel from a JSON file

Parameters:
  • f (str) – Name of the file or file pointer.

  • kw_json (keyword arguments) – Keyword arguments to pass to json.load.

Return type:

MsxModel