Skip to content

Commit c101722

Browse files
Running ICA only for EEG.
1 parent 9b41530 commit c101722

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pylossless/pipeline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,8 @@ def run_ica(self, run, picks="eeg"):
10791079
elif run == "run2":
10801080
self.ica2 = ICA(**ica_kwargs)
10811081
self.ica2.fit(epochs)
1082-
self.flags["ic"].label_components(epochs, self.ica2)
1082+
if picks == "eeg":
1083+
self.flags["ic"].label_components(epochs, self.ica2)
10831084
else:
10841085
raise ValueError("The `run` argument must be 'run1' or 'run2'")
10851086

0 commit comments

Comments
 (0)