Skip to content

Commit 7e8483d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 02a0737 commit 7e8483d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

niworkflows/workflows/epi/refmap.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def init_epi_reference_wf(
3434
omp_nthreads,
3535
auto_bold_nss=False,
3636
name='epi_reference_wf',
37-
n4_iterations=(50,)*5,
37+
n4_iterations=(50,) * 5,
3838
n4_shrink_factor=4,
3939
calculate_bspline_grid=False,
4040
):
@@ -269,13 +269,14 @@ def _post_merge(in_file, in_xfms):
269269

270270

271271
def _bspline_grid(in_file):
272+
import math
273+
272274
import nibabel as nb
273275
import numpy as np
274-
import math
275276

276277
img = nb.load(in_file)
277278
zooms = img.header.get_zooms()[:3]
278279
extent = (np.array(img.shape[:3]) - 1) * zooms
279280
# get mesh resolution ratio
280281
retval = [f'{math.ceil(i / extent[np.argmin(extent)])}' for i in extent]
281-
return f"-b [{'x'.join(retval)}]"
282+
return f'-b [{"x".join(retval)}]'

0 commit comments

Comments
 (0)