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

Add support for reading filterbank files with nsamples parameter in header #122

Open
aaronpearlman opened this issue Oct 9, 2023 · 2 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@aaronpearlman
Copy link

nsamples is a valid keyword parameter in the header of filterbank files.

Currently, when reading filterbank files with this keyword, the following warning appears:

WARNING:root:Unknown header parameter: nsamples. Skipping it and continuing. This may lead to incorrect header values.
WARNING:root:Skipping next 4 bytes of data.

This also results in an incorrect number of samples being read from the file.

This can be fixed simply by adding the following to the SigprocFile class in your/formats/pysigproc.py:

_type["nsamples"] = "int"
@aaronpearlman aaronpearlman added the bug Something isn't working label Oct 9, 2023
@devanshkv
Copy link
Member

Thanks, @aaronpearlman, would you send a PR for the fix?

Copy link

stale bot commented Feb 1, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants