Skip to content

Commit 0629f0b

Browse files
committed
✏️ Fix nibabel import in phase_encode function node
1 parent 73c6de4 commit 0629f0b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CPAC/distortion_correction/distortion_correction.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
3-
# Copyright (C) 2017-2022 C-PAC Developers
3+
# Copyright (C) 2017-2025 C-PAC Developers
44

55
# This file is part of C-PAC.
66

@@ -16,6 +16,8 @@
1616

1717
# You should have received a copy of the GNU Lesser General Public
1818
# License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
19+
"""Distortion correction utilities."""
20+
1921
import os
2022
import subprocess
2123

@@ -663,7 +665,7 @@ def distcor_blip_fsl_topup(wf, cfg, strat_pool, pipe_num, opt=None):
663665
"import os",
664666
"import subprocess",
665667
"import numpy as np",
666-
"import nibabel",
668+
"import nibabel as nib",
667669
"import sys",
668670
]
669671
phase_encoding = pe.Node(

CPAC/distortion_correction/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2021-2023 C-PAC Developers
1+
# Copyright (C) 2021-2025 C-PAC Developers
22

33
# This file is part of C-PAC.
44

@@ -14,6 +14,8 @@
1414

1515
# You should have received a copy of the GNU Lesser General Public
1616
# License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
17+
"""Distortion correction utilities."""
18+
1719
import os
1820
import subprocess
1921
import sys

0 commit comments

Comments
 (0)