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

fix: Replace deprecated interp2d with RegularGridInterpolator #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SonerTrd
Copy link

@SonerTrd SonerTrd commented Nov 7, 2024

Fix NotImplementedError from SciPy 1.14.0 by updating interpolation method

The server was throwing a NotImplementedError because the 'interp2d' function was removed in SciPy 1.14.0. The error occurred when processing voice transformations in the Fast2DInterp class.

Solution:

  1. Replace deprecated 'interp2d' with modern 'RegularGridInterpolator'
  2. Update Fast2DInterp class implementation
  3. Add proper data normalization for new interpolator
  4. Add validation for spectral envelope and frequency range

Results:

  • Successfully tested with both positive and negative VTL values
  • Properly handles spectral envelope and aperiodicity values

- Replace interp2d (removed in SciPy 1.14.0) with RegularGridInterpolator
- Update Fast2DInterp class implementation
- Add proper data normalization and validation
- Add debug logging for VTL processing
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.

None yet

1 participant