Skip to content

Commit

Permalink
STY: apply a couple refurb suggestions
Browse files Browse the repository at this point in the history
[FURB123]: Replace `bool(x)` with `x`
[FURB109]: Replace `in [x, y, z]` with `in (x, y, z)`
  • Loading branch information
DimitriPapadopoulos committed Nov 21, 2023
1 parent 41d0eeb commit 7bad08d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fmriprep/interfaces/workbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class MetricResample(WBCommand, OpenMPCommandMixin):
_cmd = "wb_command -metric-resample"

def _format_arg(self, opt, spec, val):
if opt in ["current_area", "new_area"]:
if opt in ("current_area", "new_area"):
if not self.inputs.area_surfs and not self.inputs.area_metrics:
raise ValueError(
"{} was set but neither area_surfs or" " area_metrics were set".format(opt)
Expand Down
2 changes: 1 addition & 1 deletion fmriprep/workflows/bold/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def prepare_timing_parameters(metadata: dict):
slice_timing = timing_parameters.pop("SliceTiming", [])

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

if len(slice_timing) > 1:
st = sorted(slice_timing)
Expand Down

0 comments on commit 7bad08d

Please sign in to comment.