We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5d7747 + 3dcfaeb commit 5e2d49aCopy full SHA for 5e2d49a
src/aspire/nufft/finufft.py
@@ -103,6 +103,9 @@ def transform(self, signal):
103
f"Signal frame to be transformed must have shape {self.sz}",
104
)
105
106
+ # FINUFFT was designed for a complex input array
107
+ signal = np.array(signal, copy=False, dtype=self.complex_dtype, order="C")
108
+
109
result = self._transform_plan.execute(signal)
110
111
return result
@@ -135,6 +138,9 @@ def adjoint(self, signal):
135
138
if self.ntransforms == 1:
136
139
signal = signal.reshape(self.num_pts)
137
140
141
142
143
144
result = self._adjoint_plan.execute(signal)
145
146
0 commit comments