python-neo icon indicating copy to clipboard operation
python-neo copied to clipboard

MedRawIO wrapper no longer works with dhn_med_py >= 2.0.x

Open loicferreira opened this issue 3 months ago • 2 comments

Hello, this issue is related to this ticket

Describe the bug The MedRawIO wrapper no longer works with the latest versions of dhn-med-py (>= 2.0.x). It used to work correctly with dhn-med-py<=1.1.3, but the API changed in the 2.0.x release series (end of 2024 / early 2025, see PyPI history ). As a result, the wrapper now fails when trying to load .medd folder.

To Reproduce data is available in the related ticket (ephy_testing_data/med). Install dhn-med-py>=2.0.0

from neo import io
folder_medd = "data_test.medd"
sess = io.MedIO(folder_medd,password="if_needed")

Environment: OS: Windows Python version: 3.12.10 Neo version: 0.14.2 NumPy version: 2.3.3 dhn-med-py version: 2.0.x (2.0.6 for my test)

Additional context I noticed this issue when trying to open a .medd folder on macOS with Python 3.12.10. Older versions of dhn-med-py (<2.0.0) are incompatible with this Python version, which makes using the versions 2.0.x mandatory. I’m not personally blocked by this issue, but I thought it might be useful for maintainers to be aware of the incompatibility in case updating the wrapper is of interest.

loicferreira avatar Sep 25 '25 15:09 loicferreira