-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #771 from satra/fix/makespec
auto-spec generation now sorts keys to track changes better
- Loading branch information
Showing
387 changed files
with
9,294 additions
and
8,155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,67 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from nipype.testing import assert_equal | ||
from nipype.algorithms.rapidart import ArtifactDetect | ||
|
||
def test_ArtifactDetect_inputs(): | ||
input_map = dict(ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
input_map = dict(bound_by_brainmask=dict(usedefault=True, | ||
), | ||
plot_type=dict(usedefault=True, | ||
global_threshold=dict(usedefault=True, | ||
), | ||
mask_type=dict(mandatory=True, | ||
ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
intersect_mask=dict(), | ||
mask_file=dict(), | ||
mask_threshold=dict(), | ||
parameter_source=dict(mandatory=True, | ||
mask_type=dict(mandatory=True, | ||
), | ||
translation_threshold=dict(mandatory=True, | ||
xor=['norm_threshold'], | ||
norm_threshold=dict(mandatory=True, | ||
xor=['rotation_threshold', 'translation_threshold'], | ||
), | ||
global_threshold=dict(usedefault=True, | ||
parameter_source=dict(mandatory=True, | ||
), | ||
bound_by_brainmask=dict(usedefault=True, | ||
plot_type=dict(usedefault=True, | ||
), | ||
realigned_files=dict(mandatory=True, | ||
), | ||
realignment_parameters=dict(mandatory=True, | ||
), | ||
rotation_threshold=dict(mandatory=True, | ||
xor=['norm_threshold'], | ||
), | ||
save_plot=dict(usedefault=True, | ||
), | ||
use_differences=dict(minlen=2, | ||
maxlen=2, | ||
usedefault=True, | ||
), | ||
norm_threshold=dict(mandatory=True, | ||
xor=['rotation_threshold', 'translation_threshold'], | ||
translation_threshold=dict(mandatory=True, | ||
xor=['norm_threshold'], | ||
), | ||
zintensity_threshold=dict(mandatory=True, | ||
use_differences=dict(maxlen=2, | ||
minlen=2, | ||
usedefault=True, | ||
), | ||
use_norm=dict(requires=['norm_threshold'], | ||
usedefault=True, | ||
), | ||
mask_file=dict(), | ||
intersect_mask=dict(), | ||
realignment_parameters=dict(mandatory=True, | ||
zintensity_threshold=dict(mandatory=True, | ||
), | ||
) | ||
inputs = ArtifactDetect.input_spec() | ||
|
||
for key, metadata in input_map.items(): | ||
for metakey, value in metadata.items(): | ||
yield assert_equal, getattr(inputs.traits()[key], metakey), value | ||
|
||
def test_ArtifactDetect_outputs(): | ||
output_map = dict(displacement_files=dict(), | ||
outlier_files=dict(), | ||
mask_files=dict(), | ||
intensity_files=dict(), | ||
mask_files=dict(), | ||
norm_files=dict(), | ||
statistic_files=dict(), | ||
outlier_files=dict(), | ||
plot_files=dict(), | ||
statistic_files=dict(), | ||
) | ||
outputs = ArtifactDetect.output_spec() | ||
|
||
for key, metadata in output_map.items(): | ||
for metakey, value in metadata.items(): | ||
yield assert_equal, getattr(outputs.traits()[key], metakey), value | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from nipype.testing import assert_equal | ||
from nipype.algorithms.misc import FuzzyOverlap | ||
|
||
def test_FuzzyOverlap_inputs(): | ||
input_map = dict(ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
weighting=dict(usedefault=True, | ||
in_ref=dict(mandatory=True, | ||
), | ||
in_tst=dict(mandatory=True, | ||
), | ||
out_file=dict(usedefault=True, | ||
), | ||
in_ref=dict(mandatory=True, | ||
weighting=dict(usedefault=True, | ||
), | ||
) | ||
inputs = FuzzyOverlap.input_spec() | ||
|
||
for key, metadata in input_map.items(): | ||
for metakey, value in metadata.items(): | ||
yield assert_equal, getattr(inputs.traits()[key], metakey), value | ||
|
||
def test_FuzzyOverlap_outputs(): | ||
output_map = dict(class_fji=dict(), | ||
class_fdi=dict(), | ||
diff_file=dict(), | ||
output_map = dict(class_fdi=dict(), | ||
class_fji=dict(), | ||
dice=dict(), | ||
diff_file=dict(), | ||
jaccard=dict(), | ||
) | ||
outputs = FuzzyOverlap.output_spec() | ||
|
||
for key, metadata in output_map.items(): | ||
for metakey, value in metadata.items(): | ||
yield assert_equal, getattr(outputs.traits()[key], metakey), value | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.