__eq__ not implemented

probably also not very much used outside tests
This commit is contained in:
Martin Diehl 2021-11-23 20:34:19 +01:00
parent 3393d32d9f
commit c23e9fb126
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,9 @@ class TestColormap:
@pytest.mark.parametrize('low,high',[((0,0,0),(1,1,1)),
([0,0,0],[1,1,1])])
def test_from_range_types(self,low,high):
assert Colormap.from_range(low,high) == Colormap.from_range(np.array(low),np.array(high))
a = Colormap.from_range(low,high)
b = Colormap.from_range(np.array(low),np.array(high))
assert np.all(a.colors == b.colors)
@pytest.mark.parametrize('format',['ASCII','paraview','GOM','gmsh'])
@pytest.mark.parametrize('model',['rgb','hsv','hsl','xyz','lab','msh'])