From 1f6b006478dbb2188cae910c587e7db112c1c3e2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 21:13:04 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks --- examples/ERP/noplot_nch_study.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/ERP/noplot_nch_study.py b/examples/ERP/noplot_nch_study.py index 5f0a588e..72dcf6a9 100644 --- a/examples/ERP/noplot_nch_study.py +++ b/examples/ERP/noplot_nch_study.py @@ -11,11 +11,12 @@ # Modified from noplot_classify_P300_nch.py # License: BSD (3-clause) +import random import warnings + import numpy as np -import random import qiskit_algorithms - +import seaborn as sns from matplotlib import pyplot as plt from moabb import set_log_level from moabb.datasets import Cattan2019_PHMD @@ -23,11 +24,11 @@ from moabb.paradigms import RestingStateToP300Adapter from pyriemann.classification import MDM from pyriemann.estimation import Covariances -import seaborn as sns -from sklearn.pipeline import make_pipeline -from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA -from qiskit_algorithms.optimizers import SPSA from pyriemann.tangentspace import TangentSpace +from qiskit_algorithms.optimizers import SPSA +from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA +from sklearn.pipeline import make_pipeline + from pyriemann_qiskit.classification import QuanticNCH from pyriemann_qiskit.utils.hyper_params_factory import create_mixer_rotational_X_gates