itacart.integer_index.int_to_cell

itacart.integer_index.int_to_cell(value)[source]

The cell an integer names.

Parameters:

value (Union[int, Iterable[int]]) – An integer of the index, or several.

Return type:

str | list[str]

Returns:

The atomic index for one integer, or a list of them, aligned with the input, for several.

Raises:
  • InvalidIndexError – If a value is not an int, or lies outside the integer index.

  • NonExistentCellError – If a value lies in the box but its address names no cell, as the western zero column, a column past the border, the prefix column 2004 and the codes the polar row collapses away all do.

Example

>>> int_to_cell(cell_to_int("SE(1400/0374(3(C2)))"))
'SE(1400/0374(3(C2)))'