bmcfee / resampy

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

faster import, no int outputs #109

Closed bmcfee closed 2 years ago

bmcfee commented 2 years ago

Fixes #108 Fixes #107

This PR reduces the import time by only JIT-compiling guvectorized functions as needed.

As part of this change, we no longer support int->int resampling, and will always upcast integer inputs to float32 outputs.

codecov-commenter commented 2 years ago

Codecov Report

Merging #109 (716a704) into main (29d3487) will decrease coverage by 0.86%. The diff coverage is 80.00%.

@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
- Coverage   81.44%   80.58%   -0.87%     
==========================================
  Files           4        4              
  Lines          97      103       +6     
==========================================
+ Hits           79       83       +4     
- Misses         18       20       +2     
Flag Coverage Δ
unittests 80.58% <80.00%> (-0.87%) :arrow_down:

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

Impacted Files Coverage Δ
resampy/core.py 79.62% <75.00%> (-1.63%) :arrow_down:
resampy/version.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.