Skip to content

ENH: Replace custom _whosmat_hdf5 with pymatreader.whosmat#13753

Open
bruAristimunha wants to merge 1 commit intomne-tools:mainfrom
bruAristimunha:remove-whosmat-hdf5-use-pymatreader
Open

ENH: Replace custom _whosmat_hdf5 with pymatreader.whosmat#13753
bruAristimunha wants to merge 1 commit intomne-tools:mainfrom
bruAristimunha:remove-whosmat-hdf5-use-pymatreader

Conversation

@bruAristimunha
Copy link
Contributor

Summary

  • Remove custom _whosmat_hdf5 function (~98 lines) and delegate to pymatreader.whosmat (available since v1.2.2), which handles all MATLAB file versions including v7.3 (HDF5)
  • Pin pymatreader >= 1.2.2 in pyproject.toml and propagate to environment.yml
  • Add min_version="1.2.2" to _import_pymatreader_funcs and _check_pymatreader_installed

Closes #13752

Test plan

  • python -c "from mne.io.eeglab._eeglab import _readmat" — import succeeds
  • python -m pytest mne/io/eeglab/tests/test_eeglab.py -x — no failures
  • CI: EEGLAB tests with pymatreader installed pass
  • CI: FieldTrip and ICA pymatreader tests unaffected

Remove the custom _whosmat_hdf5 function and delegate to
pymatreader.whosmat (available since v1.2.2), which handles
all MATLAB file versions including v7.3 (HDF5). Pin
pymatreader >= 1.2.2 accordingly.
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.

[EHN] Remove the whosmat to use the new functionally avaliable at pymatreader

1 participant