Anonymize measurement information in place.
Warning
If info is part of an object like
raw.info, you should directly use
the method raw.anonymize()
to ensure that all parts of the data are anonymized and
stay synchronized (e.g.,
raw.annotations).
mne.InfoThe mne.Info object with information about the sensors and methods of measurement.
int | NoneNumber of days to subtract from all dates.
If None (default), the acquisition date, info['meas_date'],
will be set to January 1ˢᵗ, 2000. This parameter is ignored if
info['meas_date'] is None (i.e., no acquisition date has been set).
If True, his_id of subject_info will not be overwritten.
Defaults to False.
Warning
This could mean that info is not fully
anonymized. Use with caution.
str | int | NoneControl 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.
InfoThe anonymized measurement information.
Notes
Removes potentially identifying information if it exists in info.
Specifically for each of the following we use:
A default value, or as specified by daysback.
Default values, except for ‘birthday’ which is adjusted to maintain the subject age.
Default strings.
None.
Zeros.
Dates use the meas_date logic, and experimenter a default string.
Dates use the meas_date logic, meta info uses defaults.
If info['meas_date'] is None, it will remain None during processing
the above fields.
Operates in place.