Nihon Kohden V2.0 support
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Start with mne-io/nihon/nihon.py and trace how read_raw_nihon chooses the legacy parser; the issue identifies the uint32 at offset 0x3EE as a format discriminator. Reproduce with an EEG-1200A high-density file and compare channel count and duration against the expected results. Done means the reader handles the extended block chain correctly or raises NotImplementedError instead of silently returning incorrect data.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description of the problem
Currently, mne-python's nihon kohden file reader read_raw_nihon silently mis-parses high-density EEG-1200A files. These have an extended block layout on disk.
#13448 enabled the EEG-1200A V01.00 device string in mne-io/nihon/nihon.py but no parser for the file layout exists. The data is stored in an extended block chain. The current low-density parsing path reads the legacy data block, whose channel-count byte usually for just channel.
The result: mne.io.read_raw_nihon() accepts these files and returns a one-channel Raw object with the wrong duration. No warning or error.
How the layout differs (verified against real files)
- A
uint32at file offset0x3EEis0on every V1 file inspected, and
points to an extended-block chain on every EEG-1200A high-density file
inspected. It is a reliable discriminator; the device string is not (the
same string also appears on files that must keep the V1 path).
Proposed fixes, two options:
- safety - raise NotImplementedError when we detect the extend-block chain format.
- Add extended block support. I have a working fix which is about 100 lines long which has been tested on real files. These are compared with NK's own EDF export files and are bit-for-bit matches. (This also covers a silent scaling bug which I will submit separately.) I will also submit a document with my current understanding of the file format if that is desired.
additions to mne-testing-data
I have prepared a few small file examples of the extended block format which have no patient data in them. I would be able to submit them for including in the mne-python test data. These files also caught a couple of bugs in the version 1 format parsing path.
Steps to reproduce
create a `EEG-1200A V01.00` file on an NK acquisition machne. with this amplifier. call name the stem of the file name XXXX. So have {"XXXX.eeg", "XXXX.21e", "XXXX.log", "XXXX.pnt"
import mne
raw = mne.io.read_raw_nihon("XXXX.eeg", preload=False)
print(raw.info["nchan"], raw.n_times) # 1 channel, wrong length; no error
Link to data
Here is a link to three small studies data files on google drive
Expected results
I will put the outputs of expected results here with the test files as the generic result using the example above is not meaningful.
Actual results
ditto
Additional information
This is being tested on ubuntu 22.04, 24.01 and mac OS 27
- Lenguaje dominante
- Python
- Estrellas
- 3.6k
- Forks
- 1.6k
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 71
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mne-tools/mne-python
-
`mne.stats.f_oneway` returns wrong (even negative) F for small integer dtypesPosiblemente ocupada @darshpatel1052 la tomó hace 3 días. AbiertoBUG
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
mne-tools/mne-python#14477 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
ENH: Add `description` filter parameter to `Raw.crop_by_annotations()`Posiblemente ocupada @aman-coder03 la tomó hace 214 días. AbiertoENH
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mne-tools/mne-python#13743 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
cannot plot into matplotlib subfigurePosiblemente ocupada @ishaaaan17 la tomó hace 4 días. AbiertoBUG
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
mne-tools/mne-python#14481 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
BUG: One layer BEM construction fails for current ANTS6-0Months3T templatePosiblemente ocupada @sruthisureshkumar-arch la tomó hace 5 días. AbiertoBUG
Dificultad 3/5 1-2 días Aptitud para principiantes 57/100
mne-tools/mne-python#14468 · 8 comentarios ·
Los mantenedores suelen responder en 1 día
-
BUG
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
mne-tools/mne-python#14460 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de mne-tools/mne-python
Issues similares
-
Remove the `pull_request_target` workflow before GitHub blocks itPosiblemente ocupada @jat255 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
IBM/mcp-context-forge#7483 ·
Los mantenedores suelen responder en 2 días
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
[Bug Report]: OpenAI 辅助 API 连通性测试因输出上限仅 1 token 误报“未知错误”Posiblemente ocupada @fjfanjian la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Project-N-E-K-O/N.E.K.O#3640 ·
Los mantenedores suelen responder en 1 día
-
author-page correction
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
acl-org/acl-anthology#10808 · 1 comentario ·
Los mantenedores suelen responder en 1 día