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:
- raw
mne.io.Raw
|list
ofmne.io.Raw
Subject raw data or list of raw data from several subjects.
- verbose
bool
|str
|int
|None
Control verbosity of the logging output. If
None
, use the default verbosity level. See the logging documentation andmne.verbose()
for details. Should only be passed as a keyword argument.
- raw
- Returns:
Examples using mne_bids.get_anonymization_daysback
#
05. BIDS conversion for group studies