mne_bids.get_anonymization_daysback#

mne_bids.get_anonymization_daysback(raws, verbose=None)[source]#

Get the group min and max number of daysback necessary for BIDS specs.

Warning

It is important that you remember the anonymization number if you would ever like to de-anonymize but that it is not included in the code publication as that would break the anonymization.

BIDS requires that anonymized dates be before 1925. In order to preserve the longitudinal structure and ensure anonymization, the user is asked to provide the same daysback argument to each call of write_raw_bids. To determine the minimum number of daysback necessary, this function will calculate the minimum number based on the most recent measurement date of raw objects.

Parameters:
rawmne.io.Raw | list of mne.io.Raw

Subject raw data or list of raw data from several subjects.

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Returns:
daysback_minint

The minimum number of daysback necessary to be compatible with BIDS.

daysback_maxint

The maximum number of daysback that MNE can store.

Examples using mne_bids.get_anonymization_daysback#

BIDS conversion for group studies

BIDS conversion for group studies