-
Notifications
You must be signed in to change notification settings - Fork 532
ENH: Adds interfaces for MRtrix utils shconv and sh2amp #3280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+288
−3
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
1f3d251
added predicted_signal option to tensor
tclose a9a8904
added SHConv and SH2Amp interfaces to mrtrix utils
tclose ac7490c
added name to authors list
tclose 974ca38
touched up docs and made commands inherit from commandline instead of…
tclose ccd25c6
changed isdefined checks of EstimateFOD and check
tclose f245ba4
fixed up doctest strings and added dummy files
tclose c81259b
run black over touched files
tclose ab96460
ran make specs
tclose cd4bbc6
fixed up doctest failure
tclose 35a762f
Update nipype/interfaces/mrtrix3/reconst.py
tclose 7e670ff
Update nipype/interfaces/mrtrix3/utils.py
tclose 8671983
Update nipype/interfaces/mrtrix3/utils.py
tclose 308436d
Update nipype/interfaces/mrtrix3/utils.py
tclose f4eefeb
Update nipype/interfaces/mrtrix3/utils.py
tclose 70e3bcf
Update nipype/interfaces/mrtrix3/utils.py
tclose a6e440d
Update nipype/interfaces/mrtrix3/utils.py
tclose 5266a7c
Update nipype/interfaces/mrtrix3/utils.py
tclose c5d7ffe
Update nipype/interfaces/mrtrix3/utils.py
tclose fd8cc40
Update nipype/interfaces/mrtrix3/utils.py
tclose 76ccb77
Update nipype/interfaces/mrtrix3/utils.py
tclose af8e01f
Update nipype/interfaces/mrtrix3/utils.py
tclose f698f4b
Update nipype/interfaces/mrtrix3/utils.py
tclose 5e5ffbf
Merge branch 'master' of github.com:nipy/nipype into predicted_signal
tclose e096c19
TEST: make specs
effigies File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -13,6 +13,8 @@ | |
MRConvert, | ||
MRResize, | ||
DWIExtract, | ||
SHConv, | ||
SH2Amp, | ||
) | ||
from .preprocess import ( | ||
ResponseSD, | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from ..utils import SH2Amp | ||
|
||
|
||
def test_SH2Amp_inputs(): | ||
input_map = dict( | ||
args=dict( | ||
argstr="%s", | ||
), | ||
directions=dict( | ||
argstr="%s", | ||
extensions=None, | ||
mandatory=True, | ||
position=-2, | ||
), | ||
environ=dict( | ||
nohash=True, | ||
usedefault=True, | ||
), | ||
in_file=dict( | ||
argstr="%s", | ||
extensions=None, | ||
mandatory=True, | ||
position=-3, | ||
), | ||
nonnegative=dict( | ||
argstr="-nonnegative", | ||
), | ||
out_file=dict( | ||
argstr="%s", | ||
extensions=None, | ||
name_source=["in_file"], | ||
name_template="%s_amp.mif", | ||
position=-1, | ||
usedefault=True, | ||
), | ||
) | ||
inputs = SH2Amp.input_spec() | ||
|
||
for key, metadata in list(input_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(inputs.traits()[key], metakey) == value | ||
|
||
|
||
def test_SH2Amp_outputs(): | ||
output_map = dict( | ||
out_file=dict( | ||
extensions=None, | ||
), | ||
) | ||
outputs = SH2Amp.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(outputs.traits()[key], metakey) == value |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from ..utils import SHConv | ||
|
||
|
||
def test_SHConv_inputs(): | ||
input_map = dict( | ||
args=dict( | ||
argstr="%s", | ||
), | ||
environ=dict( | ||
nohash=True, | ||
usedefault=True, | ||
), | ||
in_file=dict( | ||
argstr="%s", | ||
extensions=None, | ||
mandatory=True, | ||
position=-3, | ||
), | ||
out_file=dict( | ||
argstr="%s", | ||
extensions=None, | ||
name_source=["in_file"], | ||
name_template="%s_shconv.mif", | ||
position=-1, | ||
usedefault=True, | ||
), | ||
response=dict( | ||
argstr="%s", | ||
extensions=None, | ||
mandatory=True, | ||
position=-2, | ||
), | ||
) | ||
inputs = SHConv.input_spec() | ||
|
||
for key, metadata in list(input_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(inputs.traits()[key], metakey) == value | ||
|
||
|
||
def test_SHConv_outputs(): | ||
output_map = dict( | ||
out_file=dict( | ||
extensions=None, | ||
), | ||
) | ||
outputs = SHConv.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(outputs.traits()[key], metakey) == value |
This file contains hidden or 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
Empty file.
Empty file.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.