Skip to content

Commit 0e9fc42

Browse files
STY: Apply a couple refurb suggestions (#3151)
I selected only a couple of suggestions that make sense: * [FURB123]: Replace `bool(x)` with `x` * [FURB109]: Replace `in [x, y, z]` with `in (x, y, z)`
1 parent e2c0fc0 commit 0e9fc42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fmriprep/interfaces/workbench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class MetricResample(WBCommand, OpenMPCommandMixin):
279279
_cmd = "wb_command -metric-resample"
280280

281281
def _format_arg(self, opt, spec, val):
282-
if opt in ["current_area", "new_area"]:
282+
if opt in ("current_area", "new_area"):
283283
if not self.inputs.area_surfs and not self.inputs.area_metrics:
284284
raise ValueError(
285285
"{} was set but neither area_surfs or" " area_metrics were set".format(opt)

fmriprep/workflows/bold/outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def prepare_timing_parameters(metadata: dict):
116116
slice_timing = timing_parameters.pop("SliceTiming", [])
117117

118118
run_stc = len(slice_timing) > 1 and 'slicetiming' not in config.workflow.ignore
119-
timing_parameters["SliceTimingCorrected"] = bool(run_stc)
119+
timing_parameters["SliceTimingCorrected"] = run_stc
120120

121121
if len(slice_timing) > 1:
122122
st = sorted(slice_timing)

0 commit comments

Comments
 (0)