Repository navigation
Navigator: Session > Tables submenu (mirrors VH-Lab/NDI-matlab#1243) - #369
Merged
Merged
Conversation
…-Lab/NDI-matlab#1243) The session node's Session submenu gains Tables (Elements..., Epochs..., Probes..., Subjects..., Treatments...), each building the matching ndi.fun.doc_table table and showing it in the new ndi.gui.nav.session_table.SessionTable window, which can assign the DataFrame to a workspace variable or export it as CSV. Bridge entries added/updated for sessionTable and datasetsPane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011v7R5vMzBN3Wnupnj4kY9n
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011v7R5vMzBN3Wnupnj4kY9n
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.
Brings NDI-python in line with VH-Lab/NDI-matlab#1244 (VH-Lab/NDI-matlab#1243, NDI-matlab commit c5174ab).
What
ndi/gui/nav/datasets_pane.py: the session node's Session submenu gains Tables with Elements..., Epochs..., Probes..., Subjects... and Treatments.... Newshow_session_table(node, kind)(MATLABshowSessionTable) reports errors through the navigator alert rather than raising them.ndi/gui/nav/session_table.py(new, MATLABndi.gui.nav.sessionTable): theSessionTablewindow builds thendi.fun.doc_tabletable and shows it in aQTableWidget. It has Assign to workspace... (into__main__, the navigator's workspace) and Export CSV.... The helpers are module functions:table_kinds,kind_info,compute_table,summary_text,table_cells,cell_text,session_ref.sessionTableentry and an update todatasetsPane(sync hash c5174ab). One difference from MATLAB: MATLAB shows a progress dialog while the table is built, and Python doesn't (itsingest_session_nodedoesn't show one either).INTERFACE UPDATE: I have modified the bridge contract for
sessionTable(new) anddatasetsPaneto reflect the MATLAB source.Tests
tests/test_gui_nav_session_table.py(new): the table kinds and their order,kind_info, cell and table formatting, the first-output rule incompute_table, assigning and exporting, and an offscreen window build.tests/test_gui_nav_datasets_pane.py: the Session submenu now ends with "Tables"; the Tables submenu items are checked; a failed table is reported, not raised.Locally,
black,ruff, the new tests, alltest_gui_nav_*tests andtest_matlab_bridge_status.pypass. Two exceptions, which fail onmainas well under the PySide6 6.12 I had installed:test_gui_nav_cloud_pane(four-pane stack) andtest_gui_nav_progress_session(grid stretch).Generated by Claude Code