Skip to content

Commit f6b374e

Browse files
committed
Add matplotlib and zstandard as core dependencies
Both are now required (not optional): - matplotlib: needed for palette colormap (ListedColormap) and da.xrs.plot() with palette TIFFs - zstandard: needed for ZSTD compression (tag 50000), increasingly common in modern COGs This fixes the CI failures where these packages weren't installed.
1 parent 1caf519 commit f6b374e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ install_requires =
2323
scipy
2424
xarray
2525
numpy
26+
matplotlib
27+
zstandard
2628
packages = find:
2729
python_requires = >=3.12
2830
setup_requires = setuptools_scm

xrspatial/geotiff/tests/test_features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2140,7 +2140,7 @@ def test_palette_8bit_read(self, tmp_path):
21402140
assert da.dtype == np.uint8
21412141
np.testing.assert_array_equal(da.values, pixels)
21422142

2143-
# Should have a cmap in attrs
2143+
# Should have cmap and colormap_rgba in attrs
21442144
assert 'cmap' in da.attrs
21452145
assert 'colormap_rgba' in da.attrs
21462146

0 commit comments

Comments
 (0)