Skip to content

Commit 78f2667

Browse files
committed
sty: ruff format [ignore-rev]
1 parent 510cf42 commit 78f2667

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/smriprep/interfaces/templateflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ def fetch_template_files(
205205
if specs.get('resolution') and not set(specs['resolution']) & set(available_resolutions):
206206
fallback_res = available_resolutions[0] if available_resolutions else None
207207
LOGGER.warning(
208-
f"Template {name[0]} does not have resolution(s): {specs['resolution']}."
209-
f"Falling back to resolution: {fallback_res}."
208+
f'Template {name[0]} does not have resolution(s): {specs["resolution"]}.'
209+
f'Falling back to resolution: {fallback_res}.'
210210
)
211211
specs['resolution'] = fallback_res
212212

src/smriprep/utils/bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def write_derivative_description(bids_dir, deriv_dir):
143143
if 'SMRIPREP_DOCKER_TAG' in os.environ:
144144
desc['GeneratedBy'][0]['Container'] = {
145145
'Type': 'docker',
146-
'Tag': f"poldracklab/smriprep:{os.environ['SMRIPREP_DOCKER_TAG']}",
146+
'Tag': f'poldracklab/smriprep:{os.environ["SMRIPREP_DOCKER_TAG"]}',
147147
}
148148
if 'SMRIPREP_SINGULARITY_URL' in os.environ:
149149
desc['GeneratedBy'][0]['Container'] = {

src/smriprep/workflows/anatomical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def init_anat_fit_wf(
773773
LOGGER.info('ANAT Stage 1: Adding template workflow')
774774
ants_ver = ANTsInfo.version() or '(version unknown)'
775775
desc += f"""\
776-
{"Each" if num_t1w > 1 else "The"} T1w image was corrected for intensity
776+
{'Each' if num_t1w > 1 else 'The'} T1w image was corrected for intensity
777777
non-uniformity (INU) with `N4BiasFieldCorrection` [@n4], distributed with ANTs {ants_ver}
778778
[@ants, RRID:SCR_004757]"""
779779
desc += '.\n' if num_t1w > 1 else ', and used as T1w-reference throughout the workflow.\n'

src/smriprep/workflows/outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ def _combine_cohort(in_template):
13251325
template = in_template.split(':')[0]
13261326
if 'cohort-' not in in_template:
13271327
return template
1328-
return f"{template}+{in_template.split('cohort-')[-1].split(':')[0]}"
1328+
return f'{template}+{in_template.split("cohort-")[-1].split(":")[0]}'
13291329
return [_combine_cohort(v) for v in in_template]
13301330

13311331

src/smriprep/workflows/surfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ def _get_surfaces(subjects_dir: str, subject_id: str, surfaces: list[str]) -> tu
16841684

16851685
surf_dir = Path(subjects_dir) / subject_id / 'surf'
16861686
all_surfs = {
1687-
surface: sorted(str(fn) for fn in surf_dir.glob(f"[lr]h.{surface.replace('_', '.')}"))
1687+
surface: sorted(str(fn) for fn in surf_dir.glob(f'[lr]h.{surface.replace("_", ".")}'))
16881688
for surface in expanded_surfaces
16891689
}
16901690

0 commit comments

Comments
 (0)