Skip to content

Neuroscan CNT file responses read improperly  #13006

@withmywoessner

Description

@withmywoessner

Description of the problem

MNE does not read keypad responses from Neuroscan CNT files.

Steps to reproduce

# Ran using testing cnt file. 
mne.io.read_raw_cnt('test_CNT_events_mne_JWoess_clipped.cnt', preload=True, verbose=True)

Link to data

No response

Expected results

image

Actual results

Response is read as "0"

image

Additional information

Platform Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.35
Python 3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:45:18) [GCC 12.3.0]
Executable /home/woess/mambaforge/envs/mne/bin/python
CPU x86_64 (32 cores)
Memory 31.2 GB

Core
├☑ mne 1.8.0 (latest release)
├☑ numpy 1.26.4 (OpenBLAS 0.3.23.dev with 32 threads)
├☑ scipy 1.13.0
└☑ matplotlib 3.8.4 (backend=module://matplotlib_inline.backend_inline)

Numerical (optional)
├☑ sklearn 1.4.1.post1
├☑ numba 0.59.1
├☑ nibabel 5.2.1
├☑ nilearn 0.10.3
├☑ dipy 1.9.0
├☑ openmeeg 2.5.8
├☑ pandas 1.5.3
├☑ h5io 0.2.2
├☑ h5py 3.10.0
└☐ unavailable cupy

Visualization (optional)
├☑ pyvista 0.43.4 (OpenGL 4.1 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 via D3D12 (Intel(R) UHD Graphics 770))
├☑ pyvistaqt 0.11.0
├☑ vtk 9.2.6
├☑ qtpy 2.4.1 (PyQt5=5.15.8)
QStandardPaths: wrong permissions on runtime directory /run/user/1000/, 0755 instead of 0700
├☑ pyqtgraph 0.13.4
├☑ mne-qt-browser 0.6.2
├☑ ipywidgets 8.1.2
├☑ trame_client 2.17.1
├☑ trame_server 2.17.3
├☑ trame_vtk 2.8.5
├☑ trame_vuetify 2.4.3
└☐ unavailable ipympl

Ecosystem (optional)
├☑ mne-bids 0.15.0
├☑ eeglabio 0.0.2-4
├☑ edfio 0.4.3
├☑ mffpy 0.8.0
├☑ pybv 0.7.5
└☐ unavailable mne-nirs, mne-features, mne-connectivity, mne-icalabel, mne-bids-pipeline, neo

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