Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move convolution code to Convolutions.jl submodule #613

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

wheeheee
Copy link
Member

Not sure if xcorr belongs in there, and currently the deconv function calls filt, so that can't be moved into convolutions.jl as-is either.

Copy link

codecov bot commented Dec 15, 2024

Codecov Report

Attention: Patch coverage is 98.82353% with 3 lines in your changes missing coverage. Please review.

Project coverage is 97.96%. Comparing base (3e79857) to head (a17ad59).

Files with missing lines Patch % Lines
src/convolutions.jl 98.81% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #613   +/-   ##
=======================================
  Coverage   97.96%   97.96%           
=======================================
  Files          19       20    +1     
  Lines        3248     3248           
=======================================
  Hits         3182     3182           
  Misses         66       66           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martinholters
Copy link
Member

Not that I'm necessarily opposed to this, but what's the benefit?

@wheeheee
Copy link
Member Author

In #598 @dlfivefifty asked if convolutions could be moved out into a separate package. This PR would make it easier to do that, if the decision is made. One benefit would be that those who use only conv would have the choice to not load everything else here if they don't want to, and therefore be less affected by breaking releases in the rest of the package.

@dlfivefifty
Copy link

I wonder about whether FFTW.jl should be a hard dependency. Alternatively, a simpler package ConvolutionsBase.jl which only defines conv and conv! without implementing them might be a better solution.

For example, in InfiniteArrays.jl overloads of conv I don't actually need the fft at all:

https://github.com/JuliaArrays/InfiniteArrays.jl/blob/master/ext/InfiniteArraysDSPExt.jl

@martinholters
Copy link
Member

Right, if we want to move the convolutions stuff to a seperate repo, there are a bunch of questions to answer. But I don't think this PR or #598 are the best places to discuss that. Maybe open a dedicated issue or discussion?

WRT this PR, I think we should wait until that discussion has settled before actually setting into anything in motion. But as a draft to try things out, it might indeed be helpful.

@dlfivefifty
Copy link

#615

as we're already using it in util / others use it too.
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.

3 participants