mmuckley / torchkbnufft

A high-level, easy-to-deploy non-uniform Fast Fourier Transform in PyTorch.
https://torchkbnufft.readthedocs.io/
MIT License
209 stars 44 forks source link

Fix Numpy complex type #94

Closed Andrew-Dupuis closed 7 months ago

Andrew-Dupuis commented 10 months ago

Replace np.complex with complex throughout code for compatibility with newer versions of numpy.

Andrew-Dupuis commented 7 months ago

Sorry for the delay on this response - should be good now

mmuckley commented 7 months ago

Hello @Andrew-Dupuis, did you update the PR? I still see the .to as sending to complex rather than np.complex128.

Andrew-Dupuis commented 7 months ago

I did - 85deede. Utils.py at line 51 was restored to dtype=np.complex128. I'm not sure where in the PR you are seeing a .to() call - per the Files Changed above I'm just showing the three remaining dtype=complex changes.