-
Notifications
You must be signed in to change notification settings - Fork 15
Cookiecutter: fix deprecation warnings #44
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
Conversation
| ] | ||
| dependencies = [ | ||
| 'pyfar>=0.5.0', | ||
| 'pyfar>=0.6.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required for the PyfarDeprecationWarning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates deprecation warnings to use PyfarDeprecationWarning throughout the codebase and synchronizes related API parameters and dependency versions.
- Replaces DeprecationWarning with PyfarDeprecationWarning for functions, tests, and internal warnings
- Adjusts the parameter name from freq_range to frequency_range in a function call to align with the updated API
- Upgrades the pyfar dependency from version 0.5.0 to 0.6.0
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_dsp.py | Removed several tests related to impulse response start functionality |
| tests/test_deprecation_warnings.py | Updated tests to expect PyfarDeprecationWarning instead of DeprecationWarning |
| pyrato/roomacoustics.py | Switched to PyfarDeprecationWarning for deprecation messages |
| pyrato/edc.py | Minor reformatting adjustments in numerical computations |
| pyrato/dsp.py | Updated warnings to use PyfarDeprecationWarning and renamed a parameter |
| pyproject.toml | Updated pyfar dependency version to >=0.6.0 |
Comments suppressed due to low confidence (2)
tests/test_dsp.py:20
- Several tests for find_impulse_response_start have been removed from this file; please ensure that critical behavior continues to be tested elsewhere.
def test_start_ir_insufficient_snr():
pyrato/dsp.py:332
- The parameter is now passed using 'frequency_range' instead of 'freq_range'. Please double-check that this change correctly matches the updated API of pf.dsp.filter.fractional_octave_bands.
return pf.dsp.filter.fractional_octave_bands(
|
Are the tests failing due to changes in this branch or must something be merged to resolve this? |
|
yes because the changes here are already on develop_v1.0.0 and not fixed yet: |
|
these are hotfixes and potencial hot bugs on main, so this should be done on main |
fixes all deprecation warnings in #36