The mne.io RawArray copy function is a method that enables the user to create a copy of their MNE raw data array with the same metadata and data. The function returns a copy of RawArray object.
Code Example:
import mne
# Load your raw data raw = mne.io.read_raw_edf('eeg_file.edf', preload=True)
# Make a copy of your raw data raw_copy = raw.copy()
# Verify that the copy has the same metadata as the original print(raw.info == raw_copy.info)
In this example, we first load in raw EEG data from an EDF file using the mne.io.read_raw_edf() function. After creating the initial RawArray object, we then make a copy of the object using the .copy() method. Finally, we check if the metadata (such as electrode locations and sampling frequency) of the original and copied RawArray objects are identical using the '==' operator.
This is a function provided by the MNE-Python package library, which is designed for analyzing EEG and MEG data.
Python RawArray.copy - 20 examples found. These are the top rated real world Python examples of mne.io.RawArray.copy extracted from open source projects. You can rate examples to help us improve the quality of examples.