itacart.hierarchy.uncompact_cells

itacart.hierarchy.uncompact_cells(index, target_res)[source]

Expand a compacted index back to uniform resolution.

Parameters:
  • index (str) – Compositional index string, possibly mixed-resolution.

  • target_res (int) – Resolution to expand every cell to.

Yields:

str – Atomic index strings at target_res.

Raises:
  • MaxResolutionError – If target_res exceeds resolution 13.

  • NonExistentCellError – If any cell of the index names no cell.

  • ResolutionError – If any terminal cell is finer than target_res.

  • GeometryError – If the expansion reaches the cell that holds a pole at resolution 10, whose children cannot be enumerated. A known limitation; see the module’s notes. Raised as the result is iterated.

Return type:

Iterator[str]