rotate_node_coordinates#

module wntr.morph.node

rotate_node_coordinates(wn, theta, return_copy=True)[source]#

Rotate node coordinates counter-clockwise by theta degrees

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

  • theta (float) – Node rotation, in degrees

  • 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