write_json#

module wntr.network.io

write_json(wn, path_or_buf, **kw_json)[source]#

Write the WaterNetworkModel to a JSON file

Parameters:
  • path_or_buf (str or IO stream) – Name of the file or file pointer

  • kw_json (keyword arguments) – Arguments to pass directly to json.dump