Skip to content

Commit 24c7b66

Browse files
committed
Minor spacing and formatting fixes via ruff
1 parent c42c5e9 commit 24c7b66

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/fmripost_template/tasks/registration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import nibabel as nb
32
import numpy as np
43
from fileformats.generic import File
@@ -25,7 +24,7 @@ def resample_image_pydra(
2524
order: int = 3,
2625
mode: str = 'constant',
2726
cval: float = 0.0,
28-
prefilter: bool = True
27+
prefilter: bool = True,
2928
) -> Nifti1 | NiftiGz:
3029
"""Pydra node for registering a bold series to a defined target space.
3130
@@ -102,4 +101,3 @@ def resample_image_pydra(
102101
)
103102
output.to_filename(out_path)
104103
return out_path
105-

src/fmripost_template/tasks/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
32
# vi: set ft=python sts=4 ts=4 sw=4 et:
43
#
@@ -22,6 +21,7 @@
2221
# https://www.nipreps.org/community/licensing/
2322
#
2423
"""Useful functions for Pydra Tasks"""
24+
2525
import os.path as op
2626

2727

@@ -43,6 +43,7 @@ def split_filename(fname):
4343

4444
return pth, fname, ext
4545

46+
4647
def fname_presuffix(fname, prefix='', suffix='', newpath=None, use_ext=True):
4748
pth, fname, ext = split_filename(fname)
4849
if not use_ext:

src/fmripost_template/utils/resampling.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import asyncio
32
import os
43
from functools import partial

0 commit comments

Comments
 (0)