itacart.serialization.tree_blob.resolution_of_binary
- itacart.serialization.tree_blob.resolution_of_binary(node)[source]
Resolution of an encoded node.
- Parameters:
node (
bytes) – Encoded node.- Return type:
- Returns:
Resolution level, 1 to 13.
- Raises:
MalformedBlobError – If the bytes are not a valid node.
Example
>>> resolution_of_binary(encode_node("NE(0625/0451(3))")) 2