omfpandas.blockmodels.coordinate_encoding

Functions to support coordinate encoding/decoding for block models. NOTE: The encoding scheme can only support x, y, z, given the 64 bit limit, so only regular block models are supported.

Functions

decode_coordinates

Decode the 64-bit integer back to the original coordinates.

encode_coordinates

Encode the coordinates into a 64-bit integer.

encoded_index_to_multiindex

Convert an encoded integer Index back to a MultiIndex.

multiindex_to_encoded_index

Convert a MultiIndex to an encoded integer Index.