Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Jun 1, 2022
1 parent b749408 commit 3074bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neurokit2/misc/find_outliers.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def find_outliers(data, exclude=2, side="both", method="sd", **kwargs):
right = np.percentile(data, exclude[1] * 100)
left = np.percentile(data, exclude[0] * 100)
else:
right = np.percentile(data, (1 - (exclude[1] / 2)) * 100)
left = np.percentile(data, (exclude[0] / 2) * 100)
right = np.percentile(data, (1 - (exclude / 2)) * 100)
left = np.percentile(data, (exclude / 2) * 100)

elif method in ["sd"]:
if isinstance(exclude, (list, tuple, np.ndarray)):
Expand Down

0 comments on commit 3074bca

Please sign in to comment.