Skip to content

Commit

Permalink
remove dead code (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff authored Aug 31, 2024
1 parent 48b7349 commit 8897804
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pyprep/prep_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import mne
from mne.utils import check_random_state

from pyprep.find_noisy_channels import NoisyChannels
from pyprep.reference import Reference
from pyprep.removeTrend import removeTrend
from pyprep.utils import _set_diff, _union # noqa: F401
Expand Down Expand Up @@ -184,12 +183,6 @@ def raw(self):

def fit(self):
"""Run the whole PREP pipeline."""
noisy_detector = NoisyChannels(self.raw_eeg, random_state=self.random_state)
noisy_detector.find_bad_by_nan_flat()
# unusable_channels = _union(
# noisy_detector.bad_by_nan, noisy_detector.bad_by_flat
# )
# reference_channels = _set_diff(self.prep_params["ref_chs"], unusable_channels)
# Step 1: 1Hz high pass filtering
if len(self.prep_params["line_freqs"]) != 0:
self.EEG_new = removeTrend(
Expand Down

0 comments on commit 8897804

Please sign in to comment.