Skip to content

Commit 7503dc6

Browse files
STY: Apply ruff rule RUF021
RUF021 Parenthesize `a and b` expressions when chaining `and` and `or` together, to make the precedence clear
1 parent 335bee5 commit 7503dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fmriprep/workflows/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,8 @@ def map_fieldmap_estimation(
876876
fmap_estimators = find_estimators(
877877
layout=layout,
878878
subject=subject_id,
879-
fmapless=bool(use_syn) or ignore_fieldmaps and force_syn,
880-
force_fmapless=force_syn or ignore_fieldmaps and use_syn,
879+
fmapless=bool(use_syn) or (ignore_fieldmaps and force_syn),
880+
force_fmapless=force_syn or (ignore_fieldmaps and use_syn),
881881
bids_filters=filters,
882882
)
883883

0 commit comments

Comments
 (0)