Skip to content

Commit 3895bb6

Browse files
STY: Apply ruff/Pyflakes rule F401
F401 imported but unused
1 parent 4d1352a commit 3895bb6

File tree

109 files changed

+11
-387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+11
-387
lines changed

nipype/algorithms/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ def split_rois(in_file, mask=None, roishape=None):
13471347
"""
13481348
import nibabel as nb
13491349
import numpy as np
1350-
from math import sqrt, ceil
1350+
from math import ceil
13511351
import os.path as op
13521352

13531353
if roishape is None:

nipype/algorithms/tests/test_ErrorMap.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#!/usr/bin/env python
22

3-
import pytest
4-
from nipype.testing import example_data
53
from nipype.algorithms.metrics import ErrorMap
64
import nibabel as nb
75
import numpy as np
8-
import os
96

107

118
def test_errormap(tmpdir):

nipype/algorithms/tests/test_Overlap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
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

5-
import os
65

76
from nipype.testing import example_data
87

nipype/algorithms/tests/test_confounds.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
import os
32

43
import pytest
54
from nipype.testing import example_data

nipype/algorithms/tests/test_mesh_ops.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +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

4-
import os
54

65
import pytest
7-
import nipype.testing as npt
86
from nipype.testing import example_data
97
import numpy as np
108
from nipype.algorithms import mesh as m

nipype/algorithms/tests/test_misc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from nipype.algorithms import misc
1010
from nipype.utils.filemanip import fname_presuffix
11-
from nipype.testing.fixtures import create_analyze_pair_file_in_directory
1211
from nipype.testing import example_data
1312

1413

nipype/algorithms/tests/test_modelgen.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33

44
from copy import deepcopy
5-
import os
65

76
from nibabel import Nifti1Image
87
import numpy as np

nipype/algorithms/tests/test_normalize_tpms.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
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

4-
import os
54

6-
import pytest
75
from nipype.testing import example_data
86

97
import numpy as np
108
import nibabel as nb
11-
import nipype.testing as nit
129

1310
from nipype.algorithms.misc import normalize_tpms
1411

nipype/algorithms/tests/test_splitmerge.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
def test_split_and_merge(tmpdir):
77
import numpy as np
88
import nibabel as nb
9-
import os.path as op
10-
import os
119

1210
from nipype.algorithms.misc import split_rois, merge_rois
1311

nipype/interfaces/afni/model.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,18 @@
1212
import os
1313

1414
from ..base import (
15-
CommandLineInputSpec,
16-
CommandLine,
17-
Directory,
1815
TraitedSpec,
1916
traits,
2017
isdefined,
2118
File,
2219
InputMultiPath,
23-
Undefined,
2420
Str,
2521
)
26-
from ...external.due import BibTeX
2722

2823
from .base import (
29-
AFNICommandBase,
3024
AFNICommand,
3125
AFNICommandInputSpec,
3226
AFNICommandOutputSpec,
33-
Info,
3427
)
3528

3629

0 commit comments

Comments
 (0)