translate_node_coordinates#

module wntr.morph.node

translate_node_coordinates(wn, offset_x, offset_y, return_copy=True)[source]#

Translate node coordinates

Parameters:
  • wn (wntr WaterNetworkModel) – Water network model

  • offset_x (tuple) – Translation in the x direction, in meters

  • offset_y (float) – Translation in the y direction, in meters

  • return_copy (bool, optional) – If True, modify and return a copy of the WaterNetworkModel object. If False, modify and return the original WaterNetworkModel object.

Returns:

Water network model with updated node coordinates

Return type:

wntr WaterNetworkModel