We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93fc23b commit cdd6d42Copy full SHA for cdd6d42
coordinate_compression.py
@@ -0,0 +1,9 @@
1
+def compress(value):
2
+ if value not in coordinate_map:
3
+ raise ValueError(f"{value} not found in coordinate map")
4
+ return coordinate_map[value]
5
+
6
+def decompress(index):
7
+ if index < 0 or index >= len(original_values):
8
+ raise ValueError(f"Index {index} is out of bounds")
9
+ return original_values[index]
0 commit comments