holoviz / colorcet

A set of useful perceptually uniform colormaps for plotting scientific data
http://colorcet.holoviz.org
Other
682 stars 52 forks source link

Over 300 test failures for `=dev-python/colorcet-2.0.6` #103

Closed TheChymera closed 1 year ago

TheChymera commented 1 year ago

This is the full build log. Most issues seem to be AssertionErrors.

ALL software version info

dev-python/param 1.12.3 dev-python/pyct 0.4.8 dev-lang/python 3.10.9

jbednar commented 1 year ago

From the log it looks like this is reporting issues with gentoo, not with the colorcet library as packaged by the colorcet authors? If so I don't think that this repo is the place to report such issues; presumably take that up with wherever that build is being done.

philippjfr commented 1 year ago

@jbednar I think @TheChymera works on distributing packages for Gentoo and is reporting that the colorcet test suite does not run correctly on their build system. The errors seems real and not Gentoo specific e.g.:

__________________________________________________ test_get_cm[linear_grey_10_95_c0_r-v5] __________________________________________________

k = 'linear_grey_10_95_c0_r', v = <matplotlib.colors.LinearSegmentedColormap object at 0x7f6d98b6a980>

    @pytest.mark.parametrize('k,v', list(cc.cm.items()))
    def test_get_cm(k, v):
        import matplotlib.cm as mcm
>       assert mcm.get_cmap('cet_' + k) is v
E       AssertionError: assert <matplotlib.colors.LinearSegmentedColormap object at 0x7f6d985ee710> is <matplotlib.colors.LinearSegmentedColormap object at 0x7f6d98b6a980>
E        +  where <matplotlib.colors.LinearSegmentedColormap object at 0x7f6d985ee710> = <function _get_cmap at 0x7f6d99b716c0>(('cet_' + 'linear_grey_10_95_c0_r'))
E        +    where <function _get_cmap at 0x7f6d99b716c0> = <module 'matplotlib.cm' from '/usr/lib/python3.10/site-packages/matplotlib/cm.py'>.get_cmap

k          = 'linear_grey_10_95_c0_r'
mcm        = <module 'matplotlib.cm' from '/usr/lib/python3.10/site-packages/matplotlib/cm.py'>
v          = <matplotlib.colors.LinearSegmentedColormap object at 0x7f6d98b6a980>
jbednar commented 1 year ago

@TheChymera , can you check whether this would resolve your issue? If so, I can make a new patch release of colorcet, but this is the only user-visible change since the previous release, so I'd like to know it's actually going to help!