Skip to content

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

@loicferreira

Description

@loicferreira

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions