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

Signal processing v0 #300

Merged
merged 81 commits into from
Aug 9, 2024
Merged

Signal processing v0 #300

merged 81 commits into from
Aug 9, 2024

Conversation

kippfreud
Copy link
Contributor

@kippfreud kippfreud commented Jun 7, 2024

This PR contains FFT and Wavelet decomposition support for pynapple objects. Some functions are based on those from pywavelets package, but have, at this point, been changed significantly

@kippfreud kippfreud requested a review from gviejo as a code owner June 7, 2024 15:58
@gviejo
Copy link
Contributor

gviejo commented Jun 7, 2024

I merged main into dev

@gviejo
Copy link
Contributor

gviejo commented Jun 7, 2024

Steps for linting are in the tox file.
https://github.com/pynapple-org/pynapple/blob/main/tox.ini

@gviejo
Copy link
Contributor

gviejo commented Jun 7, 2024

Note after quickly looking at the PR : pynapple uses numpy docstring not google docstring

@kippfreud
Copy link
Contributor Author

Note after quickly looking at the PR : pynapple uses numpy docstring not google docstring

Docstings updated and linting fixed

Copy link

codecov bot commented Jun 7, 2024

Codecov Report

Attention: Patch coverage is 18.33333% with 49 lines in your changes missing coverage. Please review.

Files Coverage Δ
pynapple/process/__init__.py 100.00% <100.00%> (ø)
pynapple/process/signal_processing.py 16.94% <16.94%> (ø)

Copy link
Collaborator

@BalzaniEdoardo BalzaniEdoardo left a comment

Choose a reason for hiding this comment

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

Great to see the code shaping up! I left a few notes, nothing major really

@gviejo gviejo mentioned this pull request Jun 23, 2024
@kippfreud kippfreud force-pushed the signal_processing branch from 4cb6c0a to 4af8d90 Compare June 27, 2024 21:50
Copy link
Collaborator

@BalzaniEdoardo BalzaniEdoardo left a comment

Choose a reason for hiding this comment

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

i left a bunch of stuff, mostly minor

compute_spectogram computes fft on only a single epoch of data. This epoch be given with the ep
parameter otherwise will be sig.time_support, but it must only be a single epoch.
"""
if not isinstance(sig, (nap.Tsd, nap.TsdFrame)):
Copy link
Collaborator

Choose a reason for hiding this comment

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

too bad, if we relied on XArrays instead of pandas we could allow TsdTensor

@gviejo
Copy link
Contributor

gviejo commented Aug 9, 2024

Great job. Thank you Kipp.

@gviejo gviejo merged commit 8f21e99 into pynapple-org:dev Aug 9, 2024
11 checks passed
@kippfreud kippfreud deleted the signal_processing branch August 9, 2024 18:42
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