Skip to content

add function to parse Recording Events - #5

Open
Hegelim wants to merge 1 commit into
mainfrom
add_recording_events_ts
Open

add function to parse Recording Events#5
Hegelim wants to merge 1 commit into
mainfrom
add_recording_events_ts

Conversation

@Hegelim

@Hegelim Hegelim commented Oct 2, 2025

Copy link
Copy Markdown

From BlackRock Neurotech File Spec: https://blackrockneurotech.com/wp-content/uploads/LB-0023-7.00_NEV_File_Format.pdf, page 14 describes that packet 65529 (0xFFF9) represents a Recording Event, which includes very important info TimeStamp - "The time stamp of the beginning of the file recording". This info is to be distinguished from "Time Origin", noted on page 3, which represents the UTC time when the data file was collected.

This info is visible and accessible via Matlab NPMK package:
image

However, this information is not available/accessible via the Python package. It's not implemented. Calling get_data() returns only digital_events
image

This patch adds the method to scan for this packet in NEV and adds that to the output. Now with get_data(), we will have
image

@Hegelim
Hegelim requested a review from TomekFraczek October 2, 2025 18:48
@Hegelim Hegelim self-assigned this Oct 2, 2025
@TomekFraczek

Copy link
Copy Markdown
Member

Oh wow, great find and a very useful patch.
I'm also adding @tahaismail424 since he's been working with this package a lot

@TomekFraczek TomekFraczek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks awesome Yewen.
We should also separately make a PR to the official BRK branch of these utils

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