mne_bids.copyfiles.copyfile_brainvision#

mne_bids.copyfiles.copyfile_brainvision(vhdr_src, vhdr_dest, anonymize=None, verbose=None)[source]#

Copy a BrainVision file triplet to a new location and repair links.

The BrainVision file format consists of three files: .vhdr, .eeg/.dat, and .vmrk The .eeg/.dat and .vmrk files associated with the .vhdr file will be given names as in vhdr_dest with adjusted extensions. Internal file pointers will be fixed.

Parameters:
vhdr_srcpath-like

The source path of the .vhdr file to be copied.

vhdr_destpath-like

The destination path of the .vhdr file.

anonymizedict | None

If None (default), no anonymization is performed. If dict, data will be anonymized depending on the keys provided with the dict: daysback is a required key, keep_his is an optional key.

daysbackint

Number of days by which to move back the recording date in time. In studies with multiple subjects the relative recording date differences between subjects can be kept by using the same number of daysback for all subject anonymizations. daysback should be great enough to shift the date prior to 1925 to conform with BIDS anonymization rules.

keep_hisbool

By default (False), all subject information next to the recording date will be overwritten as well. If True, keep subject information apart from the recording date.

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.

Examples using mne_bids.copyfiles.copyfile_brainvision#

06. Rename BrainVision EEG data files

06. Rename BrainVision EEG data files