scale_node_coordinates#

module wntr.morph.node

scale_node_coordinates(wn, scale, return_copy=True)[source]#

Scales node coordinates, using 1:scale

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

  • scale (float) – Coordinate scale multiplier, 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