diff --git a/src/cmap/data/glasbey/record.json b/src/cmap/data/glasbey/record.json index a317073c8..c370531e4 100644 --- a/src/cmap/data/glasbey/record.json +++ b/src/cmap/data/glasbey/record.json @@ -4,8 +4,9 @@ ], "colormaps": { "glasbey": { - "category": "miscellaneous", - "data": "cmap.data.glasbey.prebuilt:glasbey" + "category": "qualitative", + "data": "cmap.data.glasbey.prebuilt:glasbey", + "interpolation": false } }, "license": "CC0", diff --git a/tests/test_glasbey.py b/tests/test_glasbey.py index 4b427df59..f061c6aab 100644 --- a/tests/test_glasbey.py +++ b/tests/test_glasbey.py @@ -38,3 +38,12 @@ def test_glasbey_create_palette( grid_size=grid_size, cvd_severity=cvd_severity, ) + + +def test_glasbey_is_qualitative() -> None: + """Glasbey's palette is 256 maximally distinct categories, not a ramp.""" + from cmap import Colormap + + cm = Colormap("glasbey:glasbey") + assert cm.category == "qualitative" + assert cm.interpolation == "nearest"