Skip to content

[IO] Document which Python reader pop_fileio uses per format - #715

Merged
arnodelorme merged 2 commits into
developfrom
agent/issue-702
Nov 27, 2026
Merged

arnodelorme merged 2 commits into
developfrom
agent/issue-702

Conversation

@claude

@claude claude Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

State that pop_fileio does not use FieldTrip's File-IO library, that it is the function behind the EEG-IO menu, how it picks a reader, and which EEGPrep reader imports each file extension. Files read through MNE-Python (EDF, BDF, GDF, MFF) belong to the MNE-IO menu and are still read from a script. Updates the module header, the dialog Help and the API docs. No behavior change.

Fixes #702
Part of #736

pop_fileio does not use FieldTrip's File-IO library. The module header,
dialog help, and API docs now list EEGPrep's own readers and the
MNE-Python readers by file extension.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor Author

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.

@claude

claude Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @claude[bot]'s task in 39s —— View job


Code review

  • Pre-review gate (open, not draft, head 903a07a matches, no prior review)

  • Read AGENTS.md/CLAUDE.md

  • Checked each documented reader against the pop_fileio dispatch

  • Posted review

  • Overall assessment: Looks good. This PR only changes docs. I checked every reader the docs name against the dispatch code in pop_fileio: src/eegprep/functions/popfunc/pop_fileio.py lines 89–147, _read_requested_format, and _reader_for_suffix.

  • Highest-risk area: None identified.

  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. No behavior changes, so no tests are needed.

EEGLAB parity notes

None. The new text correctly says EEGPrep does not use FieldTrip's File-IO library, which EEGLAB's pop_fileio.m calls. The docs are written for people using EEGPrep on its own, as AGENTS.md asks.

What I checked:

  • File extensions:
    • .set and EEGLAB .mat use pop_loadset. _mat_is_eeglab_dataset decides whether a .mat file is an EEGLAB dataset.
    • Array .mat, .csv, .txt, .tsv, .npy and .npz use pop_importdata.
    • .cnt uses pop_loadcnt.
    • .eeg with no .vhdr/.ahdr file of the same name uses loadeeg, through _read_neuroscan_epochs.
    • .raw uses pop_readegi.
    • .vhdr and .ahdr use pop_loadbv.
    • .edf, .bdf, .gdf and .mff use mne.io.read_raw_*.
  • Data format popup: the Help text says the reader can also come from the Data format popup, and those choices match too. The egi-mff choice goes through pop_mffimport, which also calls mne.io.read_raw_egi.
  • Install command: the eegprep[mne] extra in the Help text includes defusedxml, which reading .mff files needs.

Not done: The review skill says to post this summary with gh pr comment --body-file. That needed a temp file outside the workspace, and writing it was not approved, so the review is in this comment instead. There are no inline comments because I found no issues.

@arnodelorme
arnodelorme merged commit 5e41500 into develop Nov 27, 2026
12 checks passed
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.

pop_fileio menu: say which Python reader EEGPrep uses (it is not FieldTrip's File-IO)

1 participant