def test_raster_sample(self): raster = Raster(self.array1) self.assertEqual(raster.sample(y=0), Curve(np.array([(0, 0), (1, 1), (2, 2)]), kdims=['x'], vdims=['z']))
def test_raster_sample(self): raster = Raster(self.array1) self.assertEqual(raster.sample(y=0).data, np.array([(0, 0), (1, 1), (2, 2)]))