Skip to content

Commit 67663e6

Browse files
Support for .eeg files
The .eeg input file is now accepted.
1 parent c5aab66 commit 67663e6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

eegraph/importData.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def set_montage(self, electrode_montage_path):
2727
counter = 0
2828
for item in list(df[column]):
2929
if(str(item) in nodes):
30-
counter+=1;
30+
counter+=1
3131
if(counter > 4):
3232
positions_number = list(df[column])
3333

@@ -58,4 +58,4 @@ def display_info(self, ch_names):
5858
print('\033[0m' + "Number of Channels:", self.info['nchan'])
5959
print("Sample rate:", self.info['sfreq'], "Hz.")
6060
print("Duration:", round(self.data.times.max(),3), "seconds.")
61-
print("Channel Names:", ch_names)
61+
print("Channel Names:", ch_names)

eegraph/tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import logging
99
import warnings
1010

11-
input_format = {'edf': 'mne.io.read_raw_edf(self.path, exclude= self.exclude)', 'gdf': 'mne.io.read_raw_gdf(self.path, exclude= self.exclude)', 'vhdr': 'mne.io.read_raw_brainvision(self.path)',
12-
'cnt': 'mne.io.read_raw_cnt(self.path, exclude= self.exclude)', 'bdf': 'mne.io.read_raw_edf(self.path, exclude= self.exclude)', 'egi': 'mne.io.read_raw_egi(self.path, exclude= self.exclude)',
13-
'mff': 'mne.io.read_raw_egi(self.path, exclude= self.exclude)', 'nxe': 'mne.io.read_raw_eximia(self.path, exclude= self.exclude)'}
11+
input_format = {'edf': 'mne.io.read_raw_edf(self.path, exclude= self.exclude)', 'gdf': 'mne.io.read_raw_gdf(self.path, exclude= self.exclude)', 'vhdr': 'mne.io.read_raw_egi(self.path)',
12+
'cnt': 'mne.io.read_raw_cnt(self.path)', 'bdf': 'mne.io.read_raw_edf(self.path, exclude= self.exclude)', 'egi': 'mne.io.read_raw_egi(self.path, exclude= self.exclude)',
13+
'mff': 'mne.io.read_raw_egi(self.path, exclude= self.exclude)', 'nxe': 'mne.io.read_raw_eximia(self.path)', 'eeg': 'mne.io.read_raw_nihon(self.path)'}
1414

1515
connectivity_measures = {'cross_correlation': 'Cross_correlation_Estimator', 'pearson_correlation': 'Pearson_correlation_Estimator', 'squared_coherence': 'Squared_coherence_Estimator',
1616
'imag_coherence': 'Imag_coherence_Estimator', 'corr_cross_correlation': 'Corr_cross_correlation_Estimator', 'wpli': 'Wpli_Estimator',

0 commit comments

Comments
 (0)