Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDAS: silence matplotlib deprecation warning #2534

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

adamjstewart
Copy link
Collaborator

Silences the following warning in CI:

tests/datasets/test_mdas.py: 40 warnings
  /home/runner/work/torchgeo/torchgeo/torchgeo/datasets/mdas.py:359: MatplotlibDeprecationWarning: The get_cmap function was deprecated in Matplotlib 3.7 and will be removed in 3.11. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()`` instead.
    cmap = ListedColormap([cm.get_cmap('tab20')(i) for i in range(20)])

@adamjstewart adamjstewart requested a review from nilsleh January 27, 2025 11:56
@github-actions github-actions bot added the datasets Geospatial or benchmark datasets label Jan 27, 2025
torchgeo/datasets/mdas.py Outdated Show resolved Hide resolved
torchgeo/datasets/mdas.py Outdated Show resolved Hide resolved
@adamjstewart adamjstewart merged commit 8acc6bc into microsoft:main Jan 28, 2025
19 checks passed
@adamjstewart adamjstewart deleted the datasets/mdas branch January 28, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets Geospatial or benchmark datasets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants