Skip to content
Snippets Groups Projects
Commit 24aad6fe authored by Philipp Arras's avatar Philipp Arras
Browse files

Do not support UnstructuredDomains anymore

parent 8a83b8da
No related branches found
No related tags found
No related merge requests found
...@@ -55,13 +55,11 @@ class LinearInterpolator(LinearOperator): ...@@ -55,13 +55,11 @@ class LinearInterpolator(LinearOperator):
mg = array(list(map(ravel, mg))) mg = array(list(map(ravel, mg)))
dist = [] dist = []
for dom in self.domain: for dom in self.domain:
if isinstance(dom, UnstructuredDomain): if isinstance(dom, RGSpace):
dist.append([1]*len(dom.shape))
elif isinstance(dom, RGSpace):
dist.append(list(dom.distances)) dist.append(list(dom.distances))
else: else:
raise TypeError raise TypeError
dist = array(dist).flatten().reshape((-1, 1)) dist = array(dist).reshape((-1, 1))
pos = positions/dist pos = positions/dist
excess = pos-pos.astype(int64) excess = pos-pos.astype(int64)
pos = pos.astype(int64) pos = pos.astype(int64)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment