Questions tagged [mne-python]

MNE-Python is an open-source Python package for exploring, visualizing, and analyzing human neurophysiological data such as MEG, EEG, sEEG, ECoG, and more. It includes modules for data input/output, preprocessing, visualization, source estimation, time-frequency analysis, connectivity analysis, machine learning, and statistics.

96 questions
1
vote
1 answer

Matplotlib: Adding axhline to subplot within Figure object

I need to find a way how to reference axes within matplotlib.figure.Figure object in order to add axhline(s) to one of the plots. I am using a plot_joint from the package MNE to create an EEG butterfly plot with a couple of topoplots. The lines will…
ayasugihada
  • 329
  • 1
  • 2
  • 13
1
vote
1 answer

How do I scroll through EEG data using the MNE package?

I'm learning the basics of the MNE package for EEG analysis. I'm able to load my data (.edf format) and perform various operations. However, a plot feature described at…
fishbacp
  • 1,123
  • 3
  • 14
  • 29
1
vote
0 answers

MNE read EEG channel location from EEGLAB set file

I have imported a set file from EEGLAB using io.read_epochs_eeglab. I am now computing the channel connectivity matrix to perform a cluster permutation. Since for EEG data it is still not possible to use the template that corresponds to my net…
SinC
  • 41
  • 3
1
vote
0 answers

Python module PySurfer mne install error

I did the installation of MNE following webpage instructions. However: $ pip install PySurfer mne does not work. "ImportError: No module named retrying" I'm using: Ubuntu 16.04 LTS 64-bit
1
vote
0 answers

Best approach to fill signal gaps

I have a numpy 2dim array that represents a multi channel Bio-Signal. This array has dimension 20 x n_samples where the columns represent : Sample number - 16 channels data - time. Given to bluetooth connection i have some package drops so i have…
1
vote
1 answer

How to read Enobio8 device EGG signal via MNE-Python?

I am currently working in a BCI project. We read the data from an Enobio8 device and when we recorded the file. The file is saved as an .easy format along with a .info file. Below are examples of what each file contains. 1- EEG signals .easy file…
sakurami
  • 343
  • 3
  • 18
1
vote
1 answer

mne_browse_raw (Python MNE): How can I access user interface?

How can I access the user interface of mne_browse_raw as shown in this link? When I type the command, for example, $ mne browse_raw --raw test_raw.fif I get Opening raw data file C:\Users\Nico\schotest_raw.fif... Isotrak not found Range : 0 ...…
Nico Autia
  • 129
  • 2
  • 14
1
vote
2 answers

.csv to .edf or other EEG reading formats

I'm using a EEG detection kit called Gtec.NAUTILUS which gives me binary data for 32 channels at 500hz. The data is then converted to CSV format. Now I want to process these data in Microsoft Azure using python 3.5.1 however CSV file is not…
Kerem Kurban
  • 11
  • 1
  • 3
0
votes
1 answer

creating epochs of eeg signal using events and class labels

i am processing a eeg signal acquired by showing 10 image of each of 40 classes. i want to label the signals converted to epochs to their corresponding class labels. i extracted events data as: raw = mne.io.read_raw_bdf(raw_file, preload…
0
votes
0 answers

Using python MNE, I cannot make the raw data to plot using mne.epochs

I am trying to isolate the p300 using the mne library in python, from csv files recorded with a muse headset I managed to plot the raw data, at an unusually big scaling. But when I want mne.Epochs, my raw data does not pop up in the plot, only the…
h4wkchete
  • 1
  • 1
0
votes
0 answers

LSTM for predicting motion from time-series EEG data overfitting?

I have been developing an LSTM Model for alanyzing EEG data and guessing the motion being performed within a certain time. I am using raw EEG data from https://archive.physionet.org/pn4/eegmmidb/ and I believe I am experiencing overfitting, or some…
0
votes
0 answers

MNE - ValueError: data copying was not requested by copy=None but it was required to get to double floating point precision

I’m trying to make a simple pipeline and evaluate it’s accuracy, but for some reason I keep having this error ValueError: data copying was not requested by copy=None but it was required to get to double floating point precision cross_val_score on…
0
votes
0 answers

Reading fif file with mne.io.read_file raises an exception

I'm trying to read a .fif file with mne.io.read_file method: mne.io.read_raw_fif("./data/emotions_binary/p0109.fif", preload = True) and i'm getting ValueError: cannot reshape array of size 1883 into shape (250,8). Anybody faced with that kind of…
Tannya
  • 1
0
votes
0 answers

force change units in mne read_raw_edf

I'm trying to set the units of my eeg to microvolts when reading an edf file: import mne raw = mne.io.read_raw_edf('my_edf.edf', units='uV') But I'm getting the following error: ValueError: Unit for channel F4 is present in the file as 'mV',…
Fabio Magarelli
  • 1,031
  • 4
  • 14
  • 47
0
votes
0 answers

Is there a way to convert a .CED (EEGLAB channel location) file to txt for loading in python?

I have a .CED file which is an EEGLAB channel location file for EEG data. I want to convert this file to a txt file and access it using python. How do i do that so the 'mne' library in python can access it? I have tried to change the file extension…
AD22
  • 1