braindecode.preprocessing.SetMeasDate#
- class braindecode.preprocessing.SetMeasDate(meas_date)[source]#
Braindecode preprocessor wrapper for
set_meas_date().Set the measurement start date.
- Parameters:
- meas_datedatetime | float | tuple | None
The new measurement date. If datetime object, it must be timezone-aware and in UTC. A tuple of (seconds, microseconds) or float (alias for
(meas_date, 0)) can also be passed and a datetime object will be automatically created. If None, will remove the time reference.
- Returns:
- instinstance of Raw | Epochs | Evoked
The modified raw instance. Operates in place.
See also
Notes
If you want to remove all time references in the file, call
mne.io.anonymize_info(inst.info)after callinginst.set_meas_date(None).Added in version 0.20.