17
17
18
18
import numpy as np
19
19
import nibabel as nb
20
- from niworkflows . nipype import logging
21
- from niworkflows . nipype .utils .filemanip import fname_presuffix
22
- from niworkflows . nipype .interfaces .base import (
20
+ from nipype import logging
21
+ from nipype .utils .filemanip import fname_presuffix
22
+ from nipype .interfaces .base import (
23
23
BaseInterfaceInputSpec , TraitedSpec , File , isdefined , traits ,
24
24
SimpleInterface )
25
25
@@ -241,7 +241,7 @@ def _despike2d(data, thres, neigh=None):
241
241
242
242
def _unwrap (fmap_data , mag_file , mask = None ):
243
243
from math import pi
244
- from niworkflows . nipype .interfaces .fsl import PRELUDE
244
+ from nipype .interfaces .fsl import PRELUDE
245
245
magnii = nb .load (mag_file )
246
246
247
247
if mask is None :
@@ -433,7 +433,7 @@ def _torads(in_file, fmap_range=None, newpath=None):
433
433
"""
434
434
from math import pi
435
435
import nibabel as nb
436
- from niworkflows . nipype .utils .filemanip import fname_presuffix
436
+ from nipype .utils .filemanip import fname_presuffix
437
437
438
438
out_file = fname_presuffix (in_file , suffix = '_rad' , newpath = newpath )
439
439
fmapnii = nb .load (in_file )
@@ -452,7 +452,7 @@ def _tohz(in_file, range_hz, newpath=None):
452
452
"""Convert a field map to Hz units"""
453
453
from math import pi
454
454
import nibabel as nb
455
- from niworkflows . nipype .utils .filemanip import fname_presuffix
455
+ from nipype .utils .filemanip import fname_presuffix
456
456
457
457
out_file = fname_presuffix (in_file , suffix = '_hz' , newpath = newpath )
458
458
fmapnii = nb .load (in_file )
@@ -485,7 +485,7 @@ def phdiff2fmap(in_file, delta_te, newpath=None):
485
485
import math
486
486
import numpy as np
487
487
import nibabel as nb
488
- from niworkflows . nipype .utils .filemanip import fname_presuffix
488
+ from nipype .utils .filemanip import fname_presuffix
489
489
# GYROMAG_RATIO_H_PROTON_MHZ = 42.576
490
490
491
491
out_file = fname_presuffix (in_file , suffix = '_fmap' , newpath = newpath )
0 commit comments