def test_raster_ellipsis_slice_value_missing(self): data = np.random.rand(10, 10) try: hv.Raster(data)[..., 'Non-existent'] except Exception as e: if str(e) != repr("'z' is the only selectable value dimension"): raise AssertionError("Unexpected exception.")
def test_raster_ellipsis_slice_value(self): data = np.random.rand(10, 10) sliced = hv.Raster(data)[..., 'z'] self.assertEqual(sliced.data, data)
def plot_equalized(self): return hv.Raster(self.equalized).redim.range(z=(0, None))