Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jul 24, 2024
1 parent f59532a commit 5dd8910
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_cmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def test_apply_discrete_cmap():
assert colormap.apply_cmap(data, cm)

# Test with negative value
data = data.astype("int16")
cm = {-100: (255, 255, 255, 255), 1: (0, 0, 0, 255), 256: (255, 255, 255, 255)}
data[0, 5:, 5:] = -100
d, m = colormap.apply_cmap(data, cm)
Expand Down

0 comments on commit 5dd8910

Please sign in to comment.