diff --git a/fmriprep/interfaces/workbench.py b/fmriprep/interfaces/workbench.py index c78867098..f13fb5b67 100644 --- a/fmriprep/interfaces/workbench.py +++ b/fmriprep/interfaces/workbench.py @@ -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) diff --git a/fmriprep/workflows/bold/outputs.py b/fmriprep/workflows/bold/outputs.py index ee525d8c2..df1da07c7 100644 --- a/fmriprep/workflows/bold/outputs.py +++ b/fmriprep/workflows/bold/outputs.py @@ -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)