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

Birthday input cast to datetime.date

Open LaurentLM opened this issue 6 months ago • 0 comments

Reference issue

Fixes #13279.

What does this implement/fix?

Converts pd.Timestamp subject birthday input to datetime.date

pandas.Timestamp were allowed into info['subject_info']['birthday'] because they can be cast into a datetime.date. This was causing an issue when exporting to a FIFF file because the entry had not been converted to the right type.

Additional information

This seems to be specific to the birthday input, meas_date has the right checks to prevent pd.Timestamp inputs.

LaurentLM avatar Jun 11 '25 22:06 LaurentLM