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

More sonification fixes #418

Merged
merged 2 commits into from
Feb 25, 2025
Merged

More sonification fixes #418

merged 2 commits into from
Feb 25, 2025

Conversation

bmcfee
Copy link
Collaborator

@bmcfee bmcfee commented Feb 24, 2025

This PR fixes yet another bug in time-frequency sonification that occurs when sonifying a single frequency over a single time step. The problem was that the const interpolator was not properly respecting the dimension of the interpolation grid.

I've added a test case to cover this, though the problem will go away in 0.9 when we bump up the minimum scipy version and remove the need for the const interpolator branch.

@bmcfee bmcfee added the bug label Feb 24, 2025
@bmcfee bmcfee added this to the 0.8.2 milestone Feb 24, 2025
Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Flag Coverage Δ
unittests 85.65% <100.00%> (-0.02%) ⬇️

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

Files with missing lines Coverage Δ
mir_eval/sonify.py 99.09% <100.00%> (-0.04%) ⬇️

@bmcfee bmcfee merged commit 74b24f3 into main Feb 25, 2025
12 checks passed
@bmcfee bmcfee deleted the more-sonification-fixes branch February 25, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant