def getDataShape(indices):
    """
  Create new data shape based on the selected index array (from idx)

  Parameters
  ----------
  indices:  ndarray
  
  Returns
  -------
  out : ndarray
  """
    dataShape = []
    for i in range(len(indices)):
        dataShape.append(len(indices[i]))
    dataShape = tuple(dataShape)
    return dataShape
