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: Update to resampler handling different resolutions #309

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Conversation

adityauj
Copy link
Member

@adityauj adityauj commented Dec 4, 2024

Resampler didnt handle when new resolution was lesser than native/old resolution.
Now resampler just returns old data with old resolution if ne resolution is finer/lesser than the old resolution.

Copy link
Member

@moebiusband73 moebiusband73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is in case of SimpleResampler still an error?

Also why do you not just return the data as is in case new_frequency == old_frequency?

@adityauj
Copy link
Member Author

adityauj commented Dec 4, 2024

new_frequency <= old_frequency covers the old_frequency == new_frequency case. Data is returned as is.

@adityauj
Copy link
Member Author

adityauj commented Dec 4, 2024

Apologies for SimpleResampler error. It was never updated/maintained by me. Now I have made the function calls identical.
Have tested both of them.

@adityauj adityauj self-assigned this Dec 4, 2024
@moebiusband73 moebiusband73 merged commit 42e8e37 into master Dec 4, 2024
2 checks passed
@moebiusband73 moebiusband73 deleted the devel branch December 4, 2024 17:38
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.

2 participants