Skip to content

Remove fftconvolve#323

Open
AlexKurek wants to merge 2 commits into
lofar-astron:masterfrom
AlexKurek:Fix-removed-type-in-fftconvolve
Open

Remove fftconvolve#323
AlexKurek wants to merge 2 commits into
lofar-astron:masterfrom
AlexKurek:Fix-removed-type-in-fftconvolve

Conversation

@AlexKurek

@AlexKurek AlexKurek commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

N.complex was removed in Numpy 1.24.
Currently fftconvolve is not used since scipy.signal.fftconvolve is used, but still maybe better to fix it.
An alternative / next step could be to remove fftconvolve function.

@gmloose gmloose left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@gmloose

gmloose commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

@darafferty, what about this unused fftconvolve() method? Should we remove it. The fix @AlexKurek made was trivial, so we could keep it. But if it is not used ...

@bnikolic

Copy link
Copy Markdown
Contributor

I've been looking at the convolution (#326 ) and it seems scipy is the simplest choice as well as having performance which is competitive. The memory saving of inplace multiply in the hand-rolled fftconvolve surprisingly has a performance impact (did not trace exactly why) so I think would be of interest in only quite limited circumstances. So I would suggest removing the fftconvolve() is a good move.

@darafferty

Copy link
Copy Markdown
Collaborator

Yes, I agree it is best to remove it, as I can't see it ever being used.

@AlexKurek AlexKurek changed the title Fix removed type in fftconvolve Remove fftconvolve Jun 24, 2026
@AlexKurek

Copy link
Copy Markdown
Contributor Author

I have changed this PR to remove fftconvolve.

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.

4 participants