From cc9ceed7f0b2933742ef4c5c443aa179122ba1fc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 29 Aug 2024 13:10:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks --- moabb/datasets/erpcore2021.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/moabb/datasets/erpcore2021.py b/moabb/datasets/erpcore2021.py index 377181ea0..514a3060d 100644 --- a/moabb/datasets/erpcore2021.py +++ b/moabb/datasets/erpcore2021.py @@ -454,7 +454,7 @@ def encoding(self, events_df): # Apply the encoding function to each row encoded_column = events_df.apply(self.encode_event, axis=1) - + # Create the mapping dictionary mapping = { "Stimulus - faces": "Target", @@ -541,7 +541,7 @@ def encoding(self, events_df): # Drop rows corresponding to the responses events_df.drop(events_df[events_df["value"].isin([201, 202])].index, inplace=True) - + # Drop rows which correspond to trial_type = STATUS events_df.drop(events_df[events_df["trial_type"] == "STATUS"].index, inplace=True) @@ -720,7 +720,7 @@ def encoding(self, events_df): # Apply the encoding function to each row encoded_column = events_df.apply(self.encode_event, axis=1) - + # Create the mapping dictionary # Target : Stimulus - related word pair, # NonTarget : Stimulus - unrelated word pair @@ -801,7 +801,7 @@ def encoding(self, events_df): # Apply the encoding function to each row encoded_column = events_df.apply(self.encode_event, axis=1) - + # Create the mapping dictionary # Target: Correct response # NonTarget: Incorrect response, @@ -884,10 +884,10 @@ def encoding(self, events_df): # Drop rows which correspond to trial_type = STATUS events_df.drop(events_df[events_df["trial_type"] == "STATUS"].index, inplace=True) - + # Apply the encoding function to each row encoded_column = events_df.apply(self.encode_event, axis=1) - + # Create the mapping dictionary # Target: Response - left # NonTarget: Response - right