Skip to content

Commit

Permalink
WIP bump coloraide
Browse files Browse the repository at this point in the history
We need to test if we need to apply code changes as well
  • Loading branch information
mfisher87 committed May 24, 2024
1 parent dfb99e0 commit 3a7538e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pdgraster/Palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def create_get_color_method(self):
if(isinstance(cols, list)):

# The Palette is faster if we only create the coloraide method once
# FIXME: Breaking change in 2.0; test if we need to specify `out_space`:
# https://facelessuser.github.io/coloraide/about/changelog/#20
self.__coloraide_method__ = Color(
cols[0]).interpolate(cols[1:], space='lch')

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ shapely = ">= 2, < 3.0"
geopandas = ">= 0.12.2, < 1.0"
morecantile = ">= 3.1, < 4.0"
Rtree = ">= 0.9, < 1.0"
coloraide = ">= 0.10, < 1"
coloraide = ">= 3.3.1, < 4"
colormaps = "== 0.4.0"
Pillow = ">= 9, < 10"
rasterio = ">= 1.2, < 2"
Expand Down

0 comments on commit 3a7538e

Please sign in to comment.