Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 29, 2024
1 parent 07492af commit cc9ceed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions moabb/datasets/erpcore2021.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cc9ceed

Please sign in to comment.