mne_bids.get_anonymization_daysback

mne_bids.get_anonymization_daysback(raws)[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 miniumum 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 Raw

The group raw data. It must be a list of instances of mne.Raw.

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.