Closed 9B8DY6 closed 2 years ago
self.nufft_ob = tkbn.KbNufft(im_size=im_size, #grid_size=(256,256), ).to(self.dev),
is not syntatically correct python?
Not clear what you mean by "shutdown", but the warning is just a warning -- you can ignore, suppress, or fix (by replacing instances of np.complex
with complex
) without changing the computation.
As far as I can tell this is not used anywhere in the core package (but it is used in some examples).
https://github.com/mmuckley/torchkbnufft/search?q=np.complex
We should probably update the examples, but in your case @9B8DY6 it seems your self.dev
is np.complex
.
I solved this problem with filterwarning!
When I use ` self.nufft_ob = tkbn.KbNufft(im_size=im_size,
grid_size=(256,256),
I got warning and shutdown
but there is no problem with tkbn.ToepNufft()
and I want to know how to inverse NuFFT with toepliz.
Thank you