Skip to content

Commit a82096a

Browse files
authored
Merge pull request #241 from effigies/dep/nipype
Resume external nipype dependency
2 parents eff60f7 + 4e8f18d commit a82096a

File tree

19 files changed

+37
-65
lines changed

19 files changed

+37
-65
lines changed

.circleci/config.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ jobs:
2323
- /tmp/cache/docker.tar.gz
2424
- /tmp/cache/ubuntu.tar.gz
2525
- checkout
26-
- run:
27-
name: Checkout Nipype
28-
command: |
29-
git submodule init
30-
git submodule update || true
31-
git submodule sync
32-
git -C nipype fetch origin
33-
git submodule update
34-
3526
- run:
3627
name: Update Niworkflows version
3728
command: |
@@ -130,14 +121,6 @@ jobs:
130121
working_directory: /tmp/src/niworkflows
131122
steps:
132123
- checkout
133-
- run:
134-
name: Checkout Nipype
135-
command: |
136-
git submodule init
137-
git submodule update || true
138-
git submodule sync
139-
git -C nipype fetch origin
140-
git submodule update
141124

142125
- run:
143126
name: Update Niworkflows version

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "niworkflows/nipype"]
2-
path = nipype
3-
url = https://github.com/nipy/nipype.git

nipype

Lines changed: 0 additions & 1 deletion
This file was deleted.

niworkflows/__about__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
"""
1010
from __future__ import absolute_import, division, print_function
1111
import datetime
12-
from os import path as op
13-
import runpy
14-
15-
nipype_info = runpy.run_path(op.join(op.abspath(op.dirname(__file__)),
16-
'nipype', 'info.py'))
1712

1813
__version__ = '0.3.14-dev'
1914
__packagename__ = 'niworkflows'
@@ -53,7 +48,8 @@
5348
'Programming Language :: Python :: 3.6',
5449
]
5550

56-
REQUIRES = nipype_info['REQUIRES'] + [
51+
REQUIRES = [
52+
'nipype>=1.0.4',
5753
'nilearn>=0.2.6',
5854
'sklearn',
5955
'pandas',

niworkflows/anat/skullstrip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
from __future__ import absolute_import, division, print_function, unicode_literals
5-
from ..nipype.interfaces import ants, afni, fsl, utility as niu
6-
from ..nipype.pipeline import engine as pe
5+
from nipype.interfaces import ants, afni, fsl, utility as niu
6+
from nipype.pipeline import engine as pe
77

88

99
def afni_wf(name='AFNISkullStripWorkflow', unifize=False, n4_nthreads=1):

niworkflows/common/orient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
from __future__ import absolute_import, division, print_function, unicode_literals
55

6-
from ..nipype.pipeline import engine as pe
7-
from ..nipype.interfaces import afni, utility as niu
6+
from nipype.pipeline import engine as pe
7+
from nipype.interfaces import afni, utility as niu
88

99

1010
def reorient_wf(name='ReorientWorkflow'):

niworkflows/interfaces/fixes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from .. import __version__
88
from .utils import _copyxform
99

10-
from ..nipype.interfaces.ants.resampling import ApplyTransforms
11-
from ..nipype.interfaces.ants.registration import Registration
10+
from nipype.interfaces.ants.resampling import ApplyTransforms
11+
from nipype.interfaces.ants.registration import Registration
1212

1313

1414
class FixHeaderApplyTransforms(ApplyTransforms):

niworkflows/interfaces/masks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
import scipy.ndimage as nd
1515

1616
from .. import NIWORKFLOWS_LOG
17-
from ..nipype.interfaces import fsl, ants
18-
from ..nipype.interfaces.base import (
17+
from nipype.interfaces import fsl, ants
18+
from nipype.interfaces.base import (
1919
File, BaseInterfaceInputSpec, traits, isdefined, InputMultiPath, Str)
20-
from ..nipype.interfaces.mixins import reporting
21-
from ..nipype.algorithms import confounds
20+
from nipype.interfaces.mixins import reporting
21+
from nipype.algorithms import confounds
2222
from . import report_base as nrc
2323

2424

niworkflows/interfaces/mni.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import nibabel as nb
1313
import numpy as np
1414

15-
from ..nipype.interfaces.ants.registration import RegistrationOutputSpec
16-
from ..nipype.interfaces.ants import AffineInitializer
17-
from ..nipype.interfaces.base import (
15+
from nipype.interfaces.ants.registration import RegistrationOutputSpec
16+
from nipype.interfaces.ants import AffineInitializer
17+
from nipype.interfaces.base import (
1818
traits, isdefined, BaseInterface, BaseInterfaceInputSpec, File)
1919

2020
from ..data import getters

niworkflows/interfaces/plotting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import numpy as np
99
import pandas as pd
1010

11-
from ..nipype.utils.filemanip import fname_presuffix
12-
from ..nipype.interfaces.base import (
11+
from nipype.utils.filemanip import fname_presuffix
12+
from nipype.interfaces.base import (
1313
File, BaseInterfaceInputSpec, TraitedSpec, SimpleInterface, traits
1414
)
1515
from ..viz.plots import fMRIPlot

0 commit comments

Comments
 (0)