read_inpfile#

module wntr.network.io

read_inpfile(filename, append=None)[source]#

Create or append a WaterNetworkModel from an EPANET INP file

Parameters:
  • filename (string) – Name of the INP file.

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

Return type:

WaterNetworkModel