bmcfee / resampy

Efficient sample rate conversion in python
https://resampy.readthedocs.io
ISC License
253 stars 36 forks source link

Fixed #76 - matched input and output rates #88

Closed bmcfee closed 2 years ago

bmcfee commented 2 years ago

Fixes #76

If input and output rates are identical, then a copy of the input signal is returned with no interpolation.

This prevents ringing artifacts at the signal boundary, and is consistent with scipy resampling behavior in this situation.

codecov-commenter commented 2 years ago

Codecov Report

Merging #88 (60532c3) into main (6d20c2c) will decrease coverage by 0.65%. The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
- Coverage   84.46%   83.80%   -0.66%     
==========================================
  Files           4        4              
  Lines         103      105       +2     
==========================================
+ Hits           87       88       +1     
- Misses         16       17       +1     
Flag Coverage Δ
unittests 83.80% <50.00%> (-0.66%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
resampy/core.py 84.74% <50.00%> (-1.22%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6d20c2c...60532c3. Read the comment docs.