From 34dcedb7de1fcd44cdb8743e488c80b89fe3b654 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 14:43:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks --- moabb/datasets/thielen2015.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/moabb/datasets/thielen2015.py b/moabb/datasets/thielen2015.py index 3f6abd893..1093f0515 100644 --- a/moabb/datasets/thielen2015.py +++ b/moabb/datasets/thielen2015.py @@ -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))