Skip to content

Commit

Permalink
sty: ruff check --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 14, 2025
1 parent b538e82 commit 5cce6f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/fmripost_aroma/tests/test_utils_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def check_expected(subject_data, expected):
elif isinstance(value, list):
assert subject_data[key] is not None, f'Key {key} is None.'
assert len(subject_data[key]) == len(value)
for item, expected_item in zip(subject_data[key], value):
for item, expected_item in zip(subject_data[key], value, strict=False):
assert os.path.basename(item) == expected_item
else:
assert subject_data[key] is value
6 changes: 5 additions & 1 deletion src/fmripost_aroma/utils/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@ def collect_derivatives(
derivs_cache['anat2outputspaces_xfm'] = anat2outputspaces_xfm
else:
missing_spaces = ', '.join(
[s.space for s, found in zip(spaces.references, spaces_found) if not found]
[
s.space
for s, found in zip(spaces.references, spaces_found, strict=False)
if not found
]
)
raise ValueError(
f'Transforms to the following requested spaces not found: {missing_spaces}.'
Expand Down
4 changes: 2 additions & 2 deletions src/fmripost_aroma/utils/resampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

import asyncio
import os
from collections.abc import Callable
from functools import partial
from pathlib import Path
from typing import Callable, TypeVar
from typing import Annotated, TypeVar

import h5py
import nibabel as nb
Expand All @@ -21,7 +22,6 @@
from sdcflows.transform import grid_bspline_weights
from sdcflows.utils.tools import ensure_positive_cosines
from templateflow import api as tf
from typing_extensions import Annotated

R = TypeVar('R')

Expand Down

0 comments on commit 5cce6f5

Please sign in to comment.