-
Notifications
You must be signed in to change notification settings - Fork 535
Adding niftyseg #1911
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
Merged
Adding niftyseg #1911
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
269987d
Inital commit to add niftyseg
byvernault 013bf72
Adding db.xml to data for testing purpose.
byvernault f431e0c
Converting files to python2/3 compatibility
byvernault c7e43ea
Editing docstring to follow nipype template and add some tests.
byvernault 135da56
Adding to cmdline # doctest: +ELLIPSIS +ALLOW_UNICODE
byvernault b9610cb
Fixing the docstring
byvernault 55e555e
adding documentation in docstring for segmaths, segstats, seglabfusion
byvernault ee44a57
Symplifying the interfaces when possible using name_source/name_template
byvernault 3ab6250
renaming test to create test auto
byvernault 84adfcd
fixing doctests
byvernault 23dccd8
Using overload_extension instead of list_output/gen_filename
byvernault be7c489
Editing few options on the interface FillLesions
byvernault ef14ef5
Merge branch 'master' into adding_niftyseg
oesteban c40b673
removing base.py and using niftyreg base.py class/fct. Renaming funct…
byvernault 3389a28
Adding back base.py for NiftySegCommand because of version control on…
byvernault cf30734
adding more tests in docstring for seg_maths and seg_stats
byvernault 617eb48
fixing doctest
byvernault 3fb818f
few more errors in doctest to fix
byvernault 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
Symplifying the interfaces when possible using name_source/name_template
- Loading branch information
commit ee44a576b2a3e188c78b1f53e4ce6c44d28ff23a
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think all these interfaces would deserve some more doctests with more operations, so that we are sure that they work and that we don't break them in future maintenance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think I can follow fslmaths doctests to edit those ones?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I had in mind is something closer to the documentation of
nipype.interfaces.ants.registration.Registration
: https://github.com/nipy/nipype/blob/master/nipype/interfaces/ants/registration.py#L432-L640Here, you'll see how the inputs to the interface are varied and then the new cmdline tested.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can do that but for those interfaces it's pretty easy, only the operation changed. It's kind of the same than fslmaths.
I added different exemples for some operation but by doing so I realised that I am not checking the inputs for some argument (for example pow, thr, uthr, ... use only a float or min uses only a file). I am adding that to the interface.
Let me know if you approve this and you really want to see one test per operation.