org-arl / SignalAnalysis.jl

Signal analysis toolbox for Julia
MIT License
41 stars 10 forks source link

Resample multi-channel signals #42

Closed ymtoo closed 10 months ago

ymtoo commented 10 months ago

This PR enables resampling on multi-channel signals.

Before:

julia> x = cw(7kHz, 1s, 44.1kHz)
julia> sresample([x x], 3//2)
ERROR: UndefKeywordError: keyword argument `dims` not assigned

After:

julia> sresample([x x], 3//2)
SampledSignal @ 66150.0 Hz, 66150×2 Matrix{ComplexF64}:
codecov-commenter commented 10 months ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (359412c) 78.38% compared to head (3d38983) 78.38%.

:exclamation: Current head 3d38983 differs from pull request most recent head 6f04847. Consider uploading reports for the commit 6f04847 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #42 +/- ## ======================================= Coverage 78.38% 78.38% ======================================= Files 10 10 Lines 828 828 ======================================= Hits 649 649 Misses 179 179 ``` | [Files Changed](https://app.codecov.io/gh/org-arl/SignalAnalysis.jl/pull/42?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=org-arl) | Coverage Δ | | |---|---|---| | [src/dsp.jl](https://app.codecov.io/gh/org-arl/SignalAnalysis.jl/pull/42?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=org-arl#diff-c3JjL2RzcC5qbA==) | `97.19% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.