pywfm.IWFMModel.order_boundary_nodes#

static IWFMModel.order_boundary_nodes(in_boundary_nodes, start_node_column, end_node_column)#

takes an unordered dataframe with two columns of node ids and orders them such that the start id of the next is equal to the end id of the previous. A code is added so the output can be used to build a matplotlib path patch.

Parameters:
  • in_boundary_nodes (pd.DataFrame) – pandas DataFrame containing two columns containing ids to be ordered in sequence

  • start_node_column (str) – name of start node column

  • end_node_column (str) – name of end node column

Returns:

pandas DataFrame ordered into a continuous sequence or set of sequences

Return type:

pd.DataFrame