Skip to content

GUI data safety fixes (audit group 1) - #544

Merged
suraj-ranganath merged 10 commits into
developfrom
cursor/gui-data-safety-3b39
Nov 5, 2026
Merged

suraj-ranganath merged 10 commits into
developfrom
cursor/gui-data-safety-3b39

Conversation

@suraj-ranganath

@suraj-ranganath suraj-ranganath commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

GUI data-safety fixes from the audit against EEGLAB 8ac485f6. Resave of a never-saved dataset opens Save as instead of overwriting a raw file, and any filename is stored as .set. Save as confirms the .set file that will be written, not the typed name. Event and channel edits stay on the record you leave and are all recorded on Ok. A save that does not write the file leaves the dataset unsaved. Delete dataset asks for confirmation. BrainVision Analyzer .mat import follows pop_loadbva and keeps the converted channel coordinates. The MATLAB reference suite was run on jamming against head 8e21651: 1732 passed, 1 failed (the known pop_reref float32 average-reference issue, same as develop), 13 skipped.

Open in Web Open in Cursor 

@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

cursoragent and others added 10 commits November 5, 2026 21:31
pop_saveset resave now requires a .set filename, and File > Resave opens
Save as for a dataset that was only imported. A non-.set path is not written.

Co-authored-by: Suraj Ranganath <[email protected]>
The number field now jumps to that event or channel, including when Ok is
pressed, so values from record 1 are not written onto another record.

Co-authored-by: Suraj Ranganath <[email protected]>
pop_saveset creates a missing parent folder. A path that cannot be written
raises an error naming the function and the path, and leaves the dataset unsaved.

Co-authored-by: Suraj Ranganath <[email protected]>
File and Edit delete actions open the EEGLAB confirmation dialog and do
nothing on cancel. The menu refuses to delete the only loaded dataset.

Co-authored-by: Suraj Ranganath <[email protected]>
pop_fileio_brainvision_mat now follows the bva-io channel, rate, and marker
layout. A .mat file it cannot parse raises an error instead of returning
the wrong shape.

Co-authored-by: Suraj Ranganath <[email protected]>
convertlocs returns a copy, so the import now keeps that copy and then
drops the BESA angles, matching pop_loadbva.m:101-103. pop_loadbva.m:61-65
appends four channel records; this importer still appends one.

Co-authored-by: Suraj Ranganath <[email protected]>
Arrow and goto navigation store the fields on screen, and Ok records
every stored edit. A displayed latency of 0 is kept as a number.

Co-authored-by: Suraj Ranganath <[email protected]>
LASTCOM stores the filename with repr, so Windows backslashes are
escaped. The assertions now look for that quoted path.

Co-authored-by: Suraj Ranganath <[email protected]>
This matches pop_saveset.m:126-127. Resave of a never-saved dataset
still asks for a name. The changelog now describes the missing-folder
check as hardening and notes pop_delset raises ValueError.

Co-authored-by: Suraj Ranganath <[email protected]>
Qt no longer asks about the typed name. Typing test.edf writes test.set,
and an existing test.set is the file the confirmation names.

Co-authored-by: Suraj Ranganath <[email protected]>
@cursor
cursor Bot force-pushed the cursor/gui-data-safety-3b39 branch from da5947d to 8e21651 Compare November 5, 2026 21:32
@suraj-ranganath
suraj-ranganath marked this pull request as ready for review November 5, 2026 22:31

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@suraj-ranganath
suraj-ranganath merged commit 89eb411 into develop Nov 5, 2026
10 of 11 checks passed
@claude

claude Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

Copy link
Copy Markdown
Member Author

Before-merge retest evidence (Stream 1 / #546)

Posted here so the DoD “post results on the PR” item is satisfied. Uploads are not possible with the current token; filenames below live under /workspace/gui-parity/screenshots/.

Hands-on GUI retest (eegprep vs EEGLAB 8ac485f6, America/Los_Angeles 2026-11-05)

Finding Result Screenshots
F14 Resave of imported never-saved dataset Opens Save as (*.set); does not overwrite raw. md5 of test.edf unchanged. PR544_F14_resave_prompt_20261105_110616.png, PR544_F14_edf_name_refused_20261105_110626.png, PR544_F14_edf_overwrite_refused_20261105_110635.png, PR544_F14_resaved_20261105_110655.png, PR544v2_F14_resave_prompt_20261105_120301.png, PR544v2_F14_resaved_20261105_120313.png
F33 Save as missing / bad parent Missing parent is created; non-directory parent errors and does not mark saved. PR544_F33_saveas_nodir_20261105_110711.png
F35 Event values typed index Enter jumps to that event; Ok keeps the edit on that event; out-of-range clamps; leaving a record keeps the edit for Ok. PR544_F35_goto5_20261105_110355.png, PR544_F35_edit_zz_20261105_110436.png, PR544_F35_after_ok_20261105_110443.png, PR544_F35_999_20261105_110454.png, PR544_F35_nav_edit_lost_20261105_110504.png, PR544v2_F35_event_back_keeps_e1x_20261105_120014.png, PR544v2_F35_event_goto_keeps_e154x_20261105_120027.png, PR544v2_F35_event_after_ok_20261105_120030.png
F41 / F88 Delete dataset Confirmation dialog with Help/Cancel/Ok; Cancel keeps sets; only-one refused; bad index rejected. PR544_F41_dialog_20261105_110727.png, PR544_F41_bad_index_20261105_110741.png, PR544_F41_deleted_20261105_110753.png, PR544_F41_only_one_20261105_110756.png, PR544v2_F41_dialog_20261105_120325.png, PR544v2_F41_deleted_20261105_120333.png
F120 BVA Analyzer .mat Continuous 32×2112 @ 200 Hz / 16 events; segmented 32×200×10 / 15 events; chanlocs plottable. PR544_F120_raw_data_20261105_110812.png, PR544_F120_segmentation_20261105_110820.png, PR544v2_F120_raw_data_20261105_120204.png, PR544v2_F120_segmentation_20261105_120212.png, PR544v2_F120_chanlocs_plot_20261105_120226.png

(F36 typed-channel navigation shares the same helper; covered in the same pass: PR544_F36_*, PR544v2_F36_*.)

MATLAB reference suite (jamming, head 8e21651c)

From /workspace/pr544_matlab/SUMMARY.md (America/Los_Angeles ~14:03–14:11, 2026-11-05):

Run Sha Passed Failed Skipped
develop baseline 669139fa 1714 1 13
PR #544 head 8e21651c 1732 1 13

The single failure is the known test_average_reference_matches_matlab_on_64_channel_float32 (pop_reref float32 average-reference, max_abs 0.109375). Same on develop. No new failures. Logs: /workspace/pr544_matlab/pr544_8e21651c{,.out}.

Post-merge recheck on develop @ 24f0cf77

Checkout /workspace/check546 at 24f0cf77 (includes #544, #557 leftover, #563). Re-ran the S1 regression set and original bugs on real data:

  • F14, F33, F35, F41/F88, F120: fixed; targeted pytest green.
  • BVA leftover empty ref/type: fixed in Stream 1 leftover: empty ref/type on BVA chanlocs #557 (b293f745); tests/test_pop_fileio_brainvision_mat.py 9/9 passed.
  • Earlier harness shots from the 89eb4112 pass (also under the same stream): S1_recheck_F14_*, S1_recheck_F33_*, S1_recheck_F35_*, S1_recheck_F41_*, S1_recheck_F120_*.

Issue #546 closed as completed after this note.

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.

2 participants