Skip to content

Commit

Permalink
Merge pull request #25 from zssherman/previous_pr_changes
Browse files Browse the repository at this point in the history
DOC: Update docs and tests for previous PR.
  • Loading branch information
mgrover1 authored Nov 6, 2023
2 parents 9f273f1 + 4b21cba commit a560924
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmweather/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
* SpectralExtended
* CM_depol
* CM_rhohv
* plasmidis
"""
from pkg_resources import DistributionNotFound, get_distribution
Expand Down
1 change: 1 addition & 0 deletions cmweather/cm_colorblind.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* SpectralExtended
* CM_depol
* CM_rhohv
* plasmidis
CM_dopol and CM_rhohv are based on the work by:
Expand Down
8 changes: 8 additions & 0 deletions tests/test_cm_colorblind.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def test_colormaps_exist():
assert isinstance(cm_colorblind.CM_depol_r, matplotlib.colors.Colormap)
assert isinstance(cm_colorblind.CM_rhohv, matplotlib.colors.Colormap)
assert isinstance(cm_colorblind.CM_rhohv_r, matplotlib.colors.Colormap)
assert isinstance(cm_colorblind.plasmidis, matplotlib.colors.Colormap)
assert isinstance(cm_colorblind.plasmidis_r, matplotlib.colors.Colormap)


def test_colormaps_registered():
Expand Down Expand Up @@ -57,3 +59,9 @@ def test_colormaps_registered():

cmap = matplotlib.colormaps.get_cmap('CM_rhohv_r')
assert isinstance(cmap, matplotlib.colors.Colormap)

cmap = matplotlib.colormaps.get_cmap('plasmidis')
assert isinstance(cmap, matplotlib.colors.Colormap)

cmap = matplotlib.colormaps.get_cmap('plasmidis_r')
assert isinstance(cmap, matplotlib.colors.Colormap)

0 comments on commit a560924

Please sign in to comment.