rex.utilities.utilities.row_col_indices

row_col_indices(sc_point_gids, row_length)[source]

Convert supply curve point gids to row and col indices given row length

Parameters:
  • sc_point_gids (int | list | ndarray) – Supply curve point gid or list/array of gids

  • row_length (int) – row length (shape[1])

Returns:

  • row (int | list | ndarray) – row indices

  • col (int | list | ndarray) – row indices