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

[NEW] Indexing Biosignals using Events #45

Merged
merged 1 commit into from
Jul 8, 2022
Merged

[NEW] Indexing Biosignals using Events #45

merged 1 commit into from
Jul 8, 2022

Conversation

jomy-kk
Copy link
Owner

@jomy-kk jomy-kk commented Jul 7, 2022

No description provided.

@jomy-kk jomy-kk requested a review from MarianaAbreu July 7, 2022 17:15
@jomy-kk jomy-kk added the enhancement New feature or improving of existent one label Jul 7, 2022
@jomy-kk
Copy link
Owner Author

jomy-kk commented Jul 7, 2022

You can now use Event names to index Biosignals 🎉

For instance
ecg['seizure']
will return only the time period of the Event named seizure.

You can also index an Event with some seconds before and after it:
ecg[5 : 'seizure' : 10]
will return the time period starting 5s before and ending 10s after the Event named seizure .

For more specific paddings, use timedelta:
ecg[timedelta(hours=1, minutes:30) : 'seizure' : 10]
will return the time period starting 1h30m before and ending 10s after the Event named seizure .

Note: Events can be associated to Biosignals automatically when the Source does that, or manually using method associate.

Copy link
Collaborator

@MarianaAbreu MarianaAbreu left a comment

Choose a reason for hiding this comment

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

Once again great job from João, keep it up :)

@MarianaAbreu MarianaAbreu merged commit 8f9d2c7 into main Jul 8, 2022
@MarianaAbreu MarianaAbreu deleted the events branch July 8, 2022 15:51
@jomy-kk
Copy link
Owner Author

jomy-kk commented Jul 8, 2022

Valeu, Mariana!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improving of existent one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants