Skip to content

Commit 575e7df

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bc3c9ca commit 575e7df

4 files changed

Lines changed: 7 additions & 10 deletions

File tree

bidsmreye/bidsmreye.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Main script."""
3+
34
from __future__ import annotations
45

56
import json

bidsmreye/configuration.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ def _check_input_dir(self, attribute: str, value: Path) -> None:
3535
)
3636

3737
if not (value / "dataset_description.json").is_file():
38-
raise ValueError(
39-
f"""input_dir does not seem to be a valid BIDS dataset.
38+
raise ValueError(f"""input_dir does not seem to be a valid BIDS dataset.
4039
No dataset_description.json found:
41-
\t{value.absolute()}."""
42-
)
40+
\t{value.absolute()}.""")
4341

4442
output_dir: Path = field(default=None, converter=Path)
4543

bidsmreye/generalize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def process_subject(cfg: Config, layout_out: BIDSLayout, subject_label: str) ->
227227

228228
opts = model_opts.get_opts()
229229

230-
(_, model_inference) = train.train_model(
230+
_, model_inference = train.train_model(
231231
dataset="example_data",
232232
generators=generators,
233233
opts=opts,
@@ -241,7 +241,7 @@ def process_subject(cfg: Config, layout_out: BIDSLayout, subject_label: str) ->
241241
elif log.isEnabledFor(logging.INFO):
242242
verbose = 1
243243

244-
(_, _) = train.evaluate_model(
244+
_, _ = train.evaluate_model(
245245
dataset="tmp",
246246
model=model_inference,
247247
generators=generators,

bidsmreye/visualize.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ def collect_group_qc_data(cfg: Config) -> pd.DataFrame | None:
8989
try:
9090
qc_data = qc_data[cols]
9191
except KeyError:
92-
log.error(
93-
f"""Sidecar files seem to be missing the keys: {cols}.
94-
To fix try to run the qc at the participant level first."""
95-
)
92+
log.error(f"""Sidecar files seem to be missing the keys: {cols}.
93+
To fix try to run the qc at the participant level first.""")
9694
return None
9795

9896
return qc_data

0 commit comments

Comments
 (0)