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

EpochsStream acquisition_delay for separate event stream #369

Open
mzgsxs opened this issue Nov 27, 2024 · 0 comments
Open

EpochsStream acquisition_delay for separate event stream #369

mzgsxs opened this issue Nov 27, 2024 · 0 comments

Comments

@mzgsxs
Copy link

mzgsxs commented Nov 27, 2024

Hi I'm trying to understand and use EpochsStream class for my work.

epochs = EpochsStream(
    stream,
    bufsize=20,
    event_id=None,
    event_channels="LeftCue",
    event_stream=stream_events,
    tmin=-0.2,
    tmax=0.5,
    baseline=(None, 0),
    picks='eeg'
).connect(acquisition_delay=0.1)
epochs.info

It seems that if I use a separate event stream, connect with acquisition_delay < tmax, EpochsStream will always reject the events in ts_event. Is this behavior normal and expected or should this be considered as a bug?

& (events[:, 0] + tmin_shift + buffer_size <= ts.size)

maybe it should be checked here, to see if it's smaller than tmax?

self._acquisition_delay = acquisition_delay

thank you

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