minor: used appropriate base class
This commit is contained in:
parent
c80b253141
commit
51277348b8
@ -1,11 +1,8 @@
|
||||
from interp.grid.delaunay import dgrid as basegrid
|
||||
|
||||
from interp.tools import exact_func, log
|
||||
|
||||
import numpy as np
|
||||
|
||||
|
||||
|
||||
class rect_grid(basegrid):
|
||||
def __init__(self, xres = 5, yres = 5):
|
||||
xmin = -1.0
|
||||
@ -27,7 +24,7 @@ class rect_grid(basegrid):
|
||||
cur_y = ymin + (y * ydel)
|
||||
verts.append([cur_x, cur_y])
|
||||
q.append(exact_func((cur_x, cur_y)))
|
||||
grid.__init__(self, verts, q)
|
||||
basegrid.__init__(self, verts, q)
|
||||
|
||||
|
||||
class random_grid(rect_grid):
|
||||
@ -61,7 +58,7 @@ class random_grid(rect_grid):
|
||||
|
||||
verts.append([cur_x, cur_y])
|
||||
q.append( exact_func( (cur_x, cur_y) ) )
|
||||
grid.__init__(self, verts, q)
|
||||
basegrid.__init__(self, verts, q)
|
||||
|
||||
self.verts = np.array(self.verts)
|
||||
self.q = np.array(self.q)
|
||||
|
Loading…
Reference in New Issue
Block a user