Skip to content

Commit 70b4918

Browse files
committed
Fix hex decoding logic
1 parent 5177edc commit 70b4918

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/test_editor_loads_native.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ def test_editor_loads_native(colormap_file):
5050
colors_hex = data["colors"]
5151
colors_hex = [colors_hex[i : i + 6] for i in range(0, len(colors_hex), 6)]
5252
colors = [
53-
# TODO: Should we divide by 255 here instead of 256? The tests pass with a
54-
# lower value for `err` if we do.
55-
[int(c[i : i + 2], 16) / 256 for i in range(0, len(c), 2)]
56-
for c in colors_hex
53+
[int(c[i : i + 2], 16) / 255 for i in range(0, len(c), 2)] for c in colors_hex
5754
]
5855

5956
editor_colors = viscm.cmap_model.get_sRGB(num=256)[0].tolist()

0 commit comments

Comments
 (0)