Skip to content

Changed preprocessing appropriately#140

Draft
danielcomaduran wants to merge 7 commits into
mainfrom
fix-preprocessing-again
Draft

Changed preprocessing appropriately#140
danielcomaduran wants to merge 7 commits into
mainfrom
fix-preprocessing-again

Conversation

@danielcomaduran

Copy link
Copy Markdown
Contributor

Description

The preprocessing in paradigm was applying different filters (i.e., low- or band-pass) depending on whether the signal to process was 2D or 3D. The reasoning for this was that I assumed that a 2D signal would be long enough to accomodate the high-pass filter.

I realized that the epochs in the P300 paradigm are processed concurrently (multiple 2D arrays) rather than simultaneously (3D array). Thus, the bandpass filter was being applied eventhough the signal was not long enough for the time constant to stabilize.

Implementation

I changed the preprocessing function to consider the time constant of any EEG signal sent regardless if it is 2D or 3D. Right now 3D is not being sent but we could later modify to process all epochs simultaneously (this would speed some things)

buffer_time : float, *optional*
Defines the time in seconds after an epoch for which we require EEG data to ensure that all EEG is present in that epoch.
- Default is `0.01`.
preprocessing_window : float, *optional*

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could we please change this to be a buffer around the desired epoch so that the epoch is centred in the preprocessing window?

@danielcomaduran danielcomaduran marked this pull request as draft May 13, 2025 16:54
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.

3 participants