itacart.index.decompose

itacart.index.decompose(index)[source]

Expand a compositional index into a flat list of atomic indices.

Order is deterministic: depth-first, left to right, matching the order siblings appear in the string. Every vectorised operation in the package aligns its output to this order.

Parameters:

index (str) – Compositional index string.

Return type:

list[str]

Returns:

One fully qualified atomic index per terminal cell.

Example

"NE(0001/0002(1(A1,A2)))" yields ["NE(0001/0002(1(A1)))", "NE(0001/0002(1(A2)))"].

The fold, and how far it reaches. A western zero-column spelling names no cell – column zero is the prime-meridian column and the meridian belongs to the eastern quadrants – and this layer takes it anyway, because analysing a spelling is not the same act as answering for a cell. Two functions rewrite it onto its eastern twin (normalize and compose) and two hand it straight back (decompose and iter_cells). Anything that answers about the cell refuses it instead, so the reach of this leniency is exactly the layer that reads index strings.