itacart.index.join_components

itacart.index.join_components(components)[source]

Assemble a component path into a fully qualified atomic index.

Inverse of split_components(), and the only place in the package that writes the descent syntax for a single cell. It stood in three modules with three names and one body; a rule spelled three times is a rule that can disagree with itself.

Distinct from compose(), which folds several atomic indices into one compositional index. This takes the per-level components of a single cell.

Parameters:

components (Sequence[str]) – Quadrant first, then one refinement code per level.

Return type:

str

Returns:

The atomic index string. A lone quadrant renders as itself.

Example

>>> join_components(["NE", "0625/0451", "3"])
'NE(0625/0451(3))'
>>> join_components(split_components("NE(0625/0451(3))"))
'NE(0625/0451(3))'