Beispiel #1
0
 def __getitem__(self, key):
     x0, x1, xstep, y0, y1, ystep = slice2gridspec(key)
     grid = nn_interpolate_grid(x0, x1, xstep, y0, y1, ystep, self.default_value,
         self.triangulation.x, self.triangulation.y, self.z,
         self.triangulation.circumcenters,
         self.triangulation.triangle_nodes,
         self.triangulation.triangle_neighbors)
     return grid
 def __getitem__(self, key):
     x0, x1, xstep, y0, y1, ystep = slice2gridspec(key)
     grid = nn_interpolate_grid(x0, x1, xstep, y0, y1, ystep, self.default_value,
         self.triangulation.x, self.triangulation.y, self.z,
         self.triangulation.circumcenters,
         self.triangulation.triangle_nodes,
         self.triangulation.triangle_neighbors)
     return grid