itacart.integer_index.int_resolution

itacart.integer_index.int_resolution(value)[source]

The resolution an integer carries, 0 to 13.

Every integer of the index has one, cell or not: the resolutions occupy consecutive ranges, so this is a search over fourteen offsets.

Raises:

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

Parameters:

value (int | Iterable[int])

Return type:

int | list[int]

Example

>>> int_resolution(cell_to_int("NE(0625/0451(3(C2)))"))
3
Parameters:

value (Union[int, Iterable[int]])

Return type:

int | list[int]