mne_bids.copyfiles.copyfile_brainvision

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

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

The BrainVision file format consists of three files: .vhdr, .eeg, and .vmrk The .eeg 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_srcstr | pathlib.Path

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

vhdr_deststr | pathlib.Path

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

Determine whether results should be logged. Defaults to False.

Examples using mne_bids.copyfiles.copyfile_brainvision