Skip to content

Commit aaef1f3

Browse files
committed
COMPAT: Add __future__ imports to touched files
1 parent 10c641d commit aaef1f3

File tree

12 files changed

+16
-4
lines changed

12 files changed

+16
-4
lines changed

nipype/interfaces/fsl/ICA_AROMA.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
... '../../testing/data'))
1111
>>> os.chdir(datadir)
1212
"""
13+
from __future__ import print_function, division, unicode_literals, absolute_import
1314
from ..base import (TraitedSpec, CommandLineInputSpec, CommandLine,
1415
File, Directory, traits)
1516
import os

nipype/interfaces/fsl/fix.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
23
# vi: set ft=python sts=4 ts=4 sw=4 et:
34
"""The fix module provides classes for interfacing with the `FSL FIX
@@ -53,6 +54,7 @@
5354
outgraph = fix_pipeline.run()
5455
5556
"""
57+
from __future__ import print_function, division, unicode_literals, absolute_import
5658

5759
from ..base import (
5860
TraitedSpec,
@@ -65,9 +67,9 @@
6567
traits
6668
)
6769
from ..traits_extension import Directory, File, isdefined
68-
6970
import os
7071

72+
7173
class TrainingSetCreatorInputSpec(BaseInterfaceInputSpec):
7274
mel_icas_in = InputMultiPath(Directory(exists=True), copyfile=False,
7375
desc='Melodic output directories',

nipype/interfaces/niftyseg/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
23
# vi: set ft=python sts=4 ts=4 sw=4 et:
34

@@ -15,6 +16,7 @@
1516
--------
1617
See the docstrings of the individual classes for examples.
1718
"""
19+
from __future__ import print_function, division, unicode_literals, absolute_import
1820

1921
from ..niftyreg.base import no_nifty_package
2022
from ..niftyfit.base import NiftyFitCommand

nipype/pipeline/engine/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
# -*- coding: utf-8 -*-
32
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
43
# vi: set ft=python sts=4 ts=4 sw=4 et:

nipype/utils/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import absolute_import
3+
24
from .config import NUMPY_MMAP
35
from .onetime import OneTimeProperty, setattr_on_read
46
from .tmpdirs import TemporaryDirectory, InTemporaryDirectory

nipype/workflows/dmri/fsl/artifacts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# coding: utf-8
33
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
44
# vi: set ft=python sts=4 ts=4 sw=4 et:
5-
from __future__ import division
5+
from __future__ import print_function, division, unicode_literals, absolute_import
66

77
from ....interfaces.io import JSONFileGrabber
88
from ....interfaces import utility as niu

nipype/workflows/smri/freesurfer/autorecon1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
2+
from __future__ import print_function, division, unicode_literals, absolute_import
33
from ....utils import NUMPY_MMAP
44
from ....pipeline import engine as pe
55
from ....interfaces.utility import Function, IdentityInterface

nipype/workflows/smri/freesurfer/autorecon2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import print_function, division, unicode_literals, absolute_import
23
from ....interfaces.utility import Function, IdentityInterface, Merge
34
from ....pipeline import engine as pe
45
from ....interfaces.freesurfer import *

nipype/workflows/smri/freesurfer/autorecon3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import print_function, division, unicode_literals, absolute_import
23
from ....interfaces.utility import IdentityInterface, Merge, Function
34
from ....pipeline import engine as pe
45
from ....interfaces.freesurfer import *

nipype/workflows/smri/freesurfer/ba_maps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import print_function, division, unicode_literals, absolute_import
23
import os
34
from ....interfaces.utility import Function, IdentityInterface
45
from ....pipeline import engine as pe # pypeline engine

nipype/workflows/smri/freesurfer/recon.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from __future__ import print_function, division, unicode_literals, absolute_import
23
from ....pipeline import engine as pe
34
from ....interfaces import freesurfer as fs
45
from ....interfaces import utility as niu

nipype/workflows/smri/niftyreg/groupwise.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
23
# vi: set ft=python sts=4 ts=4 sw=4 et:
34

@@ -6,6 +7,7 @@
67
pipelines. Including linear and non-linear image co-registration
78
"""
89

10+
from __future__ import print_function, division, unicode_literals, absolute_import
911
from builtins import str, range
1012
from ....interfaces import utility as niu
1113
from ....interfaces import niftyreg as niftyreg

0 commit comments

Comments
 (0)