Commit 8a83b8da authored by Philipp Arras's avatar Philipp Arras
Browse files

Fixup for DomainTuples

parent 2ed23609
...@@ -37,7 +37,6 @@ class LinearInterpolator(LinearOperator): ...@@ -37,7 +37,6 @@ class LinearInterpolator(LinearOperator):
Multilinear interpolation for points in an RGSpace Multilinear interpolation for points in an RGSpace
:param domain: :param domain:
RGSpace
:param positions: :param positions:
positions at which to interpolate positions at which to interpolate
Field with UnstructuredDomain, shape (dim, ndata) Field with UnstructuredDomain, shape (dim, ndata)
...@@ -66,7 +65,7 @@ class LinearInterpolator(LinearOperator): ...@@ -66,7 +65,7 @@ class LinearInterpolator(LinearOperator):
pos = positions/dist pos = positions/dist
excess = pos-pos.astype(int64) excess = pos-pos.astype(int64)
pos = pos.astype(int64) pos = pos.astype(int64)
max_index = array(self.domain[0].shape).reshape((-1,)+(1,)) max_index = array(self.domain.shape).reshape(-1, 1)
data = zeros((len(mg[0]), N_points)) data = zeros((len(mg[0]), N_points))
ii = zeros((len(mg[0]), N_points), dtype=int64) ii = zeros((len(mg[0]), N_points), dtype=int64)
jj = zeros((len(mg[0]), N_points), dtype=int64) jj = zeros((len(mg[0]), N_points), dtype=int64)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment