Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[electrophysiology_browser] Fix EEG data shift #8999

Merged
merged 5 commits into from
Jan 23, 2024

Conversation

jeffersoncasimir
Copy link
Contributor

@jeffersoncasimir jeffersoncasimir commented Dec 6, 2023

Closes #8892. Has a Loris-MRI counterpart: aces/Loris-MRI#1030

Loosely dependant on #8998 (file modifications in common and done at a later time).

This PR resolves the data shift issue by adding the number of valid samples in the last chunk to the index.json, and using it for the calculations which previously assumed all chunks were filled.

Testing: Zoom in so that the last chunk of the recording is in frame and ensure that the signal does not flatline at the end. You can also compare the values in the chunk payload with the value obtained by hovering the signal at a given time.

@jeffersoncasimir jeffersoncasimir added Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) php Pull requests that update Php code javascript Pull requests that update Javascript code labels Dec 6, 2023
@laemtl laemtl self-assigned this Dec 12, 2023
@laemtl laemtl requested review from laemtl and driusan and removed request for laemtl and driusan January 16, 2024 19:12
@laemtl laemtl assigned driusan and unassigned laemtl Jan 16, 2024
@driusan driusan merged commit be39a57 into aces:main Jan 23, 2024
19 checks passed
jeffersoncasimir added a commit to jeffersoncasimir/Loris that referenced this pull request Feb 29, 2024
This resolves the data shift issue by adding the number of valid samples in the last chunk to the index.json, and using it for the calculations which previously assumed all chunks were filled.

Closes aces#8992. Has a Loris-MRI counterpart: aces/Loris-MRI#1030

Loosely dependant on aces#8998 (file modifications in common and done at a later time).
@ridz1208 ridz1208 added this to the 26.0.0 milestone Apr 9, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) javascript Pull requests that update Javascript code php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EEG pipeline] chunking data shift fix
4 participants