braindecode icon indicating copy to clipboard operation
braindecode copied to clipboard

Date prioritization in TUH

Open gemeinl opened this issue 3 years ago • 1 comments

Currently, date parsed from file paths is preferred over date read from mne.info['meas_date' in TUH classes (see https://github.com/braindecode/braindecode/blob/6b6cfaea5931e330eab2e9c3c7556f063afae7c5/braindecode/datasets/tuh.py#L94-L98) This is doubtful and should be discussed / investigated as the date from the path is the date of the export and not the date of the recording (according to some readme file published by TUH). However, there might have been files were the measurement date was 1.1.1900 or similar useless, due to the anonymization process. The effect of this decision is that year, month, day in description is different and therefore the chronological sorting of the recordings. We should have another look at this at least.

gemeinl avatar Mar 03 '23 17:03 gemeinl

Done: datasets/tuh.py:235-260 prefers raw.info[meas_date], path-parsed date only as fallback — the exact inversion requested (Audited 2026-10-13.)

bruAristimunha avatar Oct 13 '26 18:10 bruAristimunha