From f0fd1c2cab31b712c742146cb7c18a90b8f984ea Mon Sep 17 00:00:00 2001 From: Keith Doelling Date: Mon, 3 Oct 2016 16:55:43 -0400 Subject: [PATCH 1/2] FIX: 0-index ICA channel names in get_sources --- mne/preprocessing/ica.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mne/preprocessing/ica.py b/mne/preprocessing/ica.py index 6d080bc6d1e..ec19a419705 100644 --- a/mne/preprocessing/ica.py +++ b/mne/preprocessing/ica.py @@ -786,7 +786,7 @@ def _export_info(self, info, container, add_channels): ch_names = [] ch_info = info['chs'] = [] for ii in range(self.n_components_): - this_source = 'ICA %03d' % (ii + 1) + this_source = 'ICA %03d' % (ii) ch_names.append(this_source) ch_info.append(dict(ch_name=this_source, cal=1, logno=ii + 1, coil_type=FIFF.FIFFV_COIL_NONE, From f7033e9c81b5cf6dfef88602e637311e4f8188be Mon Sep 17 00:00:00 2001 From: Keith Doelling Date: Wed, 5 Oct 2016 14:12:36 -0400 Subject: [PATCH 2/2] FIX: Change format from ICA 000 to IC #000 --- mne/preprocessing/ica.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mne/preprocessing/ica.py b/mne/preprocessing/ica.py index ec19a419705..b4feb3df319 100644 --- a/mne/preprocessing/ica.py +++ b/mne/preprocessing/ica.py @@ -786,7 +786,7 @@ def _export_info(self, info, container, add_channels): ch_names = [] ch_info = info['chs'] = [] for ii in range(self.n_components_): - this_source = 'ICA %03d' % (ii) + this_source = 'IC #%03d' % (ii) ch_names.append(this_source) ch_info.append(dict(ch_name=this_source, cal=1, logno=ii + 1, coil_type=FIFF.FIFFV_COIL_NONE,