From 3da1c4cb4a7b62eedde1d13849c96e32093fae94 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Sep 2024 08:46:21 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#575) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Eric Larson --- .pre-commit-config.yaml | 2 +- mne_nirs/visualisation/_plot_nirs_source_detector.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8f63beb6..f8eb61cc5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: # Ruff mne - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.2 + rev: v0.6.3 hooks: - id: ruff args: ["--fix"] diff --git a/mne_nirs/visualisation/_plot_nirs_source_detector.py b/mne_nirs/visualisation/_plot_nirs_source_detector.py index bd983d4ab..a00f24a72 100644 --- a/mne_nirs/visualisation/_plot_nirs_source_detector.py +++ b/mne_nirs/visualisation/_plot_nirs_source_detector.py @@ -162,7 +162,7 @@ def plot_nirs_source_detector( vmax = np.max(np.abs(data)) cmap = "RdBu_r" - if isinstance(radius, (int, float)): + if isinstance(radius, int | float): radius = np.ones(len(info["chs"])) * radius # Plot requested alignment