JSON and CBOR codecs for MnaSubject — subject id, FreeSurfer $SUBJECTS_DIR link, ordered session list and forward-compatible extras.
More...

Go to the source code of this file.
JSON and CBOR codecs for MnaSubject — subject id, FreeSurfer $SUBJECTS_DIR link, ordered session list and forward-compatible extras.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
The implementation walks the MnaSession list with the matching session codec and emits freeSurferDir as a relative POSIX path so projects remain portable between hosts. Any subject-level fields not recognised by this build — demographics, consent flags, clinical metadata — are routed through extras to guarantee round-trip fidelity with newer MNALIB versions.
Definition in file mna_subject.cpp.