Beispiel #1
0
 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']))
Beispiel #2
0
 def test_raster_sample(self):
     raster = Raster(self.array1)
     self.assertEqual(raster.sample(y=0).data,
                      np.array([(0, 0), (1, 1), (2, 2)]))