Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#575)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Larson <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and larsoner authored Sep 3, 2024
1 parent 230be59 commit 3da1c4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion mne_nirs/visualisation/_plot_nirs_source_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3da1c4c

Please sign in to comment.