Skip to content

Conversation

@fepegar
Copy link
Member

@fepegar fepegar commented Jan 18, 2026

Fixes #1401.

Description

A warning was being raised when adding a NumPy complex64 to a PyTorch tensor, as reported by @e-pet in #1401.

In this PR, I compute the magnitude of the spectrum before computing the maximum, directly with PyTorch. I'm no MRI expert, but I think this is more correct and also fixes the warning.

@fepegar fepegar merged commit 8206195 into main Jan 18, 2026
32 checks passed
@fepegar fepegar deleted the 1401-fix-random-spike-warning branch January 18, 2026 22:32
@fepegar
Copy link
Member Author

fepegar commented Jan 18, 2026

@allcontributors please add @e-pet for bug

@allcontributors
Copy link
Contributor

@fepegar

I've put up a pull request to add @e-pet! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ComplexWarnings raised in RandomSpike

1 participant