Skip to content
Snippets Groups Projects
Commit 2cc558b8 authored by Vincent Eberle's avatar Vincent Eberle Committed by Philipp Arras
Browse files

equal # of pixels

parent f9f428dd
No related branches found
No related tags found
1 merge request!600Add finufft
...@@ -46,9 +46,9 @@ class FFTInterpolator(LinearOperator): ...@@ -46,9 +46,9 @@ class FFTInterpolator(LinearOperator):
raise ValueError("sampling_points must be a 2D array") raise ValueError("sampling_points must be a 2D array")
if pos.shape[0] != 2: if pos.shape[0] != 2:
raise ValueError("first dimension of sampling_points must have length 2") raise ValueError("first dimension of sampling_points must have length 2")
#FIXME @ Philipp, like that? for ii in [0, 1]:
# if pos.shape[1] %2 != 0: if domain.shape[ii] %2 != 0:
# raise ValueError("even number of samples is required for gridding operation") raise ValueError("even number of samples is required for gridding operation")
dist = [list(dom.distances) for dom in self.domain] dist = [list(dom.distances) for dom in self.domain]
dist = np.array(dist).reshape(-1,1) dist = np.array(dist).reshape(-1,1)
pos = pos / dist pos = pos / dist
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment