Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
HQian96 committed Oct 2, 2024
1 parent a19f36d commit 51f9225
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions osl/preprocessing/osl_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def _find_outliers_in_segments_per_channel(X, axis=-1, channel_axis = 0,segment_
bads_ch = np.isin(bad_inds, rm_ind)
bads[ch] = bads_ch
if threshold != 'any':
bads = np.sum(bads,axis=0) > threshold*num_channels
bads = np.sum(bads,axis=0) >= threshold*num_channels
else:
bads = np.any(bads,axis=0)

Expand Down Expand Up @@ -293,7 +293,8 @@ def detect_artefacts(X, axis=None, reject_mode='dim', metric_func=np.std,
removed (zero_bads) or the input data with outliers replaced with nans
(nan_bads)
channel_wise : bool
If True, the function will treat each channel seperately when detecting bad segments.
If True, the function will treat each channel seperately when detecting bad segments,
only used when ``reject_mode='segments'``.
channel_axis : int
The axis to treat as the channel axis. Only used when ``channel_wise=True``.
channel_threshold : str or float
Expand Down

0 comments on commit 51f9225

Please sign in to comment.