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 Apr 8, 2024
1 parent 440defe commit 34dcedb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions moabb/datasets/thielen2015.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,12 @@ def _get_single_subject_data(self, subject):
trial_labels = tmp["labels"].astype("uint8").flatten() - 1

# Codes (select optimized subset and layout, and repeat to trial length)
subset = tmp["subset"].astype("uint8").flatten() - 1 # the optimized subset of 36 codes from a set of 65
layout = tmp["layout"].astype("uint8").flatten() - 1 # the optimized position of the 36 codes in the grid
subset = (
tmp["subset"].astype("uint8").flatten() - 1
) # the optimized subset of 36 codes from a set of 65
layout = (
tmp["layout"].astype("uint8").flatten() - 1
) # the optimized position of the 36 codes in the grid
codes = tmp["codes"][:, subset[layout]]
codes = np.tile(codes, (NR_CYCLES_PER_TRIAL, 1))

Expand Down

0 comments on commit 34dcedb

Please sign in to comment.