indexing with bool deprecated?

This commit is contained in:
2026-02-11 10:41:01 +01:00
parent d72251852e
commit 6c9352f0f0

View File

@@ -161,7 +161,7 @@ class BinaryColourMap(ColourMap):
self.colours = colours
def __call__(self, v: float):
return self.colours[np.isclose(v, 0)]
return self.colours[np.isclose(v, 0).astype(int)]
class RandomChoiceColourMap(ColourMap):