Skip to content

Commit 3fbebf1

Browse files
authored
Update README.md
1 parent 58ee634 commit 3fbebf1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,17 @@ print(pipeline.flagged_chs)
5454
print(pipeline.flagged_epochs)
5555
```
5656

57-
Once you are ready, you can save your file:
57+
Once you are ready, you can apply the changes and save your file as regular:
58+
5859
```
59-
pipeline.save(pipeline.get_derivative_path(bids_path), overwrite=True)
60+
cleaned_state = pipeline.raw.copy()
61+
cleaned_state.load_data()
62+
63+
# "Blindly" trust the ic classification for test purposes here:
64+
pipeline.ica2.exclude = [index for index,comp in pipeline.flags['ic'].iterrows() if comp['ic_type'] in ['eog', 'ecg', 'muscle', 'line_noise', 'channel_noise']]
65+
pipeline.ica2.apply(cleaned_state)
66+
67+
cleaned_state = cleaned_state.interpolate_bads()
6068
```
6169

6270

0 commit comments

Comments
 (0)