Skip to content

Commit 62bb3bd

Browse files
author
Shoshana Berleant
committed
change absolute imports to explicit relative imports
1 parent fd45c05 commit 62bb3bd

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

nipype/algorithms/compcor.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from ..interfaces.base import (BaseInterfaceInputSpec, TraitedSpec,
22
BaseInterface, traits, File)
3-
4-
from nipype.pipeline import engine as pe
5-
from nipype.interfaces.utility import IdentityInterface
6-
from nipype.algorithms.tsnr import regress_poly
3+
from ..pipeline import engine as pe
4+
from ..interfaces.utility import IdentityInterface
5+
from .tsnr import regress_poly
76

87
import nibabel as nb
98
import numpy as np
@@ -16,7 +15,7 @@ class CompCorInputSpec(BaseInterfaceInputSpec):
1615
mask_file = File(exists=True, mandatory=False,
1716
desc='mask file that determines ROI (3D)')
1817
components_file = File('components_file.txt', exists=False, mandatory=False,
19-
usedefault=True,
18+
usedefault=True,
2019
desc='filename to store physiological components in')
2120
num_components = traits.Int(6, usedefault=True) # 6 for BOLD, 4 for ASL
2221
regress_poly = traits.Range(low=1, default=1, usedefault=True)

nipype/algorithms/tests/test_compcor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
import nipype
4-
from nipype.testing import (assert_equal, assert_true, assert_false, skipif,
5-
utils)
6-
from nipype.algorithms.compcor import CompCor, TCompCor, ACompCor
4+
from ...testing import assert_equal, assert_true, assert_false, skipif, utils
5+
from ..compcor import CompCor, TCompCor, ACompCor
76

87
import unittest
98
import mock

nipype/algorithms/tests/test_tsnr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
import nipype
4-
from nipype.testing import assert_equal, assert_true, skipif, utils
5-
from nipype.algorithms.misc import TSNR
4+
from ...testing import assert_equal, assert_true, skipif, utils
5+
from ..misc import TSNR
66

77
from hashlib import sha1
88
import unittest

nipype/algorithms/tsnr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
>>> os.chdir(datadir)
1111
1212
'''
13-
from nipype.interfaces.base import (BaseInterface, traits, TraitedSpec, File,
14-
InputMultiPath, BaseInterfaceInputSpec,
15-
isdefined)
13+
from ..interfaces.base import (BaseInterface, traits, TraitedSpec, File,
14+
InputMultiPath, BaseInterfaceInputSpec,
15+
isdefined)
1616
from numpy import newaxis
1717
import nibabel as nb
1818
import numpy as np

0 commit comments

Comments
 (0)