-
Notifications
You must be signed in to change notification settings - Fork 40
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
ENH: Integrate new infrastructure in NiWorkflows to handle spatial references #159
Conversation
@oesteban this roughly models the behavior discussed in nipreps/fmriprep#1604, though since we're essentially treating this as a new language (spac-ese?) it would be good to cement the conventions, especially when multiple entities are given. An example of a potentially ambiguous input: Should this produce 1 MNI152 output with label1 / label2 specifications, or 2 MNI152 outputs each pertaining to a label spec? To make this clearer, I propose introducing the i.e.
WDYT? |
Will work when the PR to niworkflows is merged.
I/O refactor suggestions
Please check out mgxd#2 |
enh: update after merge of the niworkflows PR
spaces, | ||
debug=False, | ||
name='anat_preproc_wf', | ||
skull_strip_fixed_seed=False |
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.
Just a note that we've apparently abandoned our usual rule of no default arguments (except name
) in workflow building functions.
We might want to think about either re-enforcing it or making an explicit statement in a style guide of when default arguments should be used.
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.
Sounds reasonable
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.
This LGTM.
@mgxd why blocked? |
Codecov Report
@@ Coverage Diff @@
## master #159 +/- ##
==========================================
- Coverage 77.64% 77.56% -0.08%
==========================================
Files 15 14 -1
Lines 841 798 -43
Branches 104 90 -14
==========================================
- Hits 653 619 -34
+ Misses 145 139 -6
+ Partials 43 40 -3
Continue to review full report at Codecov.
|
DS005 needs a cache wipeout bc it's picking up an old normalization reportlet (it should come out without normalization) |
need to do some testing on |
You are referring to nipreps/fmriprep#1915, right? |
Name of ANTs skull-stripping template (e.g., 'OASIS30ANTs') and | ||
dictionary of template specifications. | ||
subject_id : str | ||
skull_strip_template : :py:class:`~niworkflows.utils.spaces.Space` |
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.
btw, intersphinx is working with niworkflows :)
- Don't deploy to Pypi if ``build_docs`` fails (close nipreps#150) - Do not cache reportlets folder (see nipreps#159 (comment))
i think this is fine to merge in - let's try to hold off release until nipreps/fmriprep#1915 is resolved |
upstream PR - nipreps/fmriprep#1915
Changes
output_spaces
OrderedDict
in function signatures tospaces
, aSpaces
object.Maintenance
--template
,--fs-output-spaces
, and--no-freesurfer
command line arguments