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

error in NFx file reader #2

Open
acnani opened this issue Oct 7, 2024 · 0 comments
Open

error in NFx file reader #2

acnani opened this issue Oct 7, 2024 · 0 comments

Comments

@acnani
Copy link
Contributor

acnani commented Oct 7, 2024

per the neuroshare file spec for NFx files (see screenshot), data points should be 4 byte floats. therefore line 167-170 in read_NFx.py should be

format_string = '<' + str(channel_count) + 'f'
read_size = min(buffer_size, num_data_points - num_points_processed)
point_set = np.array([struct.unpack(format_string, datafile.read(channel_count * 4)) for i in range(0, read_size)])

Screenshot 2024-10-07 145556

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

No branches or pull requests

1 participant