Skip to content

Commit c234a01

Browse files
authored
Merge pull request #1813 from effigies/issue1348
BF: Run `make specs` with CWD in PYTHONPATH
2 parents 7354474 + f8fb369 commit c234a01

File tree

703 files changed

+1879
-828
lines changed

Some content is hidden

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

703 files changed

+1879
-828
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ html:
7171

7272
specs:
7373
@echo "Checking specs and autogenerating spec tests"
74-
python tools/checkspecs.py
74+
env PYTHONPATH=".:$(PYTHONPATH)" python tools/checkspecs.py
7575

7676
check: check-before-commit # just a shortcut
7777
check-before-commit: specs trailing-spaces html test

nipype/algorithms/tests/test_auto_ACompCor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
23
from ..confounds import ACompCor
34

45

nipype/algorithms/tests/test_auto_AddCSVColumn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
23
from ..misc import AddCSVColumn
34

45

nipype/algorithms/tests/test_auto_AddCSVRow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
23
from ..misc import AddCSVRow
34

45

nipype/algorithms/tests/test_auto_AddNoise.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
23
from ..misc import AddNoise
34

45

nipype/algorithms/tests/test_auto_ArtifactDetect.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
23
from ..rapidart import ArtifactDetect
34

45

@@ -16,7 +17,7 @@ def test_ArtifactDetect_inputs():
1617
mask_type=dict(mandatory=True,
1718
),
1819
norm_threshold=dict(mandatory=True,
19-
xor=[u'rotation_threshold', u'translation_threshold'],
20+
xor=['rotation_threshold', 'translation_threshold'],
2021
),
2122
parameter_source=dict(mandatory=True,
2223
),
@@ -27,18 +28,18 @@ def test_ArtifactDetect_inputs():
2728
realignment_parameters=dict(mandatory=True,
2829
),
2930
rotation_threshold=dict(mandatory=True,
30-
xor=[u'norm_threshold'],
31+
xor=['norm_threshold'],
3132
),
3233
save_plot=dict(usedefault=True,
3334
),
3435
translation_threshold=dict(mandatory=True,
35-
xor=[u'norm_threshold'],
36+
xor=['norm_threshold'],
3637
),
3738
use_differences=dict(maxlen=2,
3839
minlen=2,
3940
usedefault=True,
4041
),
41-
use_norm=dict(requires=[u'norm_threshold'],
42+
use_norm=dict(requires=['norm_threshold'],
4243
usedefault=True,
4344
),
4445
zintensity_threshold=dict(mandatory=True,

nipype/algorithms/tests/test_auto_CalculateNormalizedMoments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
23
from ..misc import CalculateNormalizedMoments
34

45

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..confounds import CompCor
4+
5+
6+
def test_CompCor_inputs():
7+
input_map = dict(components_file=dict(usedefault=True,
8+
),
9+
header=dict(),
10+
ignore_exception=dict(nohash=True,
11+
usedefault=True,
12+
),
13+
mask_file=dict(),
14+
num_components=dict(usedefault=True,
15+
),
16+
realigned_file=dict(mandatory=True,
17+
),
18+
regress_poly_degree=dict(usedefault=True,
19+
),
20+
use_regress_poly=dict(usedefault=True,
21+
),
22+
)
23+
inputs = CompCor.input_spec()
24+
25+
for key, metadata in list(input_map.items()):
26+
for metakey, value in list(metadata.items()):
27+
assert getattr(inputs.traits()[key], metakey) == value
28+
29+
30+
def test_CompCor_outputs():
31+
output_map = dict(components_file=dict(),
32+
)
33+
outputs = CompCor.output_spec()
34+
35+
for key, metadata in list(output_map.items()):
36+
for metakey, value in list(metadata.items()):
37+
assert getattr(outputs.traits()[key], metakey) == value

nipype/algorithms/tests/test_auto_ComputeDVARS.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
23
from ..confounds import ComputeDVARS
34

45

nipype/algorithms/tests/test_auto_ComputeMeshWarp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
23
from ..mesh import ComputeMeshWarp
34

45

0 commit comments

Comments
 (0)