Skip to content

Commit cd9ae4d

Browse files
[pre-commit.ci] pre-commit autoupdate (#13646)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>
1 parent 87d1051 commit cd9ae4d

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
# Ruff mne
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.14.14
4+
rev: v0.15.0
55
hooks:
66
- id: ruff-check
77
name: ruff lint mne

mne/io/hitachi/hitachi.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ def _read_segment_file(self, data, idx, fi, start, stop, cals, mult):
122122
this_probe["keep_mask"],
123123
this_probe["bounds"],
124124
sep=",",
125-
replace=lambda x: x.replace("\r", "\n")
126-
.replace("\n\n", "\n")
127-
.replace("\n", ",")
128-
.replace(":", ""),
125+
replace=lambda x: (
126+
x.replace("\r", "\n")
127+
.replace("\n\n", "\n")
128+
.replace("\n", ",")
129+
.replace(":", "")
130+
),
129131
).T
130132
)
131133
this_data = np.concatenate(this_data, axis=0)

0 commit comments

Comments
 (0)