feat: Live LSL timeline with EEG + Motion tracks and backscroll; fix pull_chunk, blockSignals, exec_()#4
Merged
CommanderPho merged 21 commits intomasterfrom Mar 5, 2026
Conversation
…port Co-authored-by: CommanderPho <962210+CommanderPho@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement live timeline with backscroll for EEG data
feat: Live LSL timeline with EEG + Motion tracks and backscroll
Mar 3, 2026
Co-authored-by: CommanderPho <962210+CommanderPho@users.noreply.github.com>
Copilot
AI
changed the title
feat: Live LSL timeline with EEG + Motion tracks and backscroll
feat: Live LSL timeline with EEG + Motion tracks and backscroll; fix pull_chunk, blockSignals, exec_()
Mar 3, 2026
…ents of shape evt: Event from SignalProxy(sigRangeChanged): tuple (viewbox, view_range, changed). view_range is (x_range, y_range).
…ing out of the viewport issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a real-time LSL-connected timeline displaying live EEG and Motion streams with backscroll — drag the viewport into buffered history while streaming continues, then snap back with a "⟳ Sync to Live" button. Also fixes three bugs discovered during first run.
New:
pypho_timeline/rendering/datasources/specific/lsl.pyLSLStreamReceiver—QObjectwith aQTimerpoller andresolve_bypred-based stream discovery. Emitsdata_received(channel_names, timestamps, samples). Degrades gracefully withoutpylsl._LiveRingBuffer—QMutex-guarded rolling deque, auto-trims tobuffer_seconds. Exposesto_dataframe()/get_window(t0, t1).LiveEEGTrackDatasource/LiveMotionTrackDatasource— extendIntervalProvidingTrackDatasource, wire to a receiver, implement theTrackDatasourceprotocol with live data.New:
live_lsl_timeline.pyLiveLSLTimeline—QMainWindowwith EEG + Motion tracks, 200 ms live-follow timer, and backscroll detection viaViewBox.sigRangeChangedManually.--syntheticflag starts in-process pylsl outlets for demo without hardware.Bug fixes
pull_chunkcrash —pull_chunk(dest_obj=numpy_array)returns(n_int, timestamps), not(samples, timestamps); old code hitTypeError: 'int' object is not subscriptableon first data. Droppeddest_objentirely.vb.blockSignalsbroke live rendering —blockSignals(True)aroundsetXRange()mutedsigRangeChanged, stopping theTrackRenderingMixinviewport callbacks and freezing track detail loads in live mode. Removed —setXRange()never emitssigRangeChangedManually.app.exec()→app.exec_()— consistent withmain.py/__main__.py.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.