Skip to content

info['subject_info']['birthday'] should support a datetime object #11327

@hoechenberger

Description

@hoechenberger

Describe the new feature or enhancement

Working on https://mne.discourse.group/t/minor-priority-issue-with-converting-mne-raw-into-bids-with-mne-bids-age-birthday-info-of-subject/5922, I realized that a subject's birthday must be specified as a tuple of ints. I believe this is inconsistent with the way we allow to specify the measurement date (datetime object).

Describe your proposed implementation

It should be possible to specify Info['subject_info']['birthday'] as a datetime.datetime object.

Describe possible alternatives

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions