-
Notifications
You must be signed in to change notification settings - Fork 294
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
DOC: BIDS filter input example #2028
Conversation
Thank your for raising your pull request. Some of the fMRIPRep maintainers will review your changes as soon as time permits. PR ReviewPlease check off boxes as applicable, and elaborate in comments below. Your review is not limited to these topics, as described in the reviewer guide
Please check what applies in the following aspects of the PR: Code documentation
Documentation site
Tests
Data
Dependencies: smriprep
Dependencies: niworkflows
Dependencies: sdcflows
Dependencies: Nipype
Dependencies: other
Reports generated within CI tests
|
Could you rebase with upstream/master? The latest PR merge should fix the issues you are encountering (namely, dropping one of the flake8 extensions). |
Sorry, I don't think I did this properly...I was having trouble with Edit: Building docs locally I ran into issues with |
Can you show |
I did :
Got caught in a merge conflict, resolved it, but then an infinite loop of "no changes" when trying to |
Looks like there's a merge commit. (See network.) Just
Save and quit, and it should go smoothly. |
cbe90e6
to
d9a4dd6
Compare
Alright, I think I fixed it--let me know if this is wrong! Took me a bit to figure out that I needed to force-push. |
Ah, sorry. Yes. I forgot about that. This looks like a good rebase. |
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.
Thanks! Dictionaries are hard to prettify with argparse, I think this would be cleaner as a section of the documentation (perhaps under usage.rst
or faq.rst
)
Then you could just add a pointer to it similar to how --output-spaces
does:
https://github.com/poldracklab/fmriprep/blob/1d93d9e5599d08347ba2b85a4d4590a4c9273814/fmriprep/cli/parser.py#L156
d9a4dd6
to
d9bdacb
Compare
Alright--I added a section to the FAQ, and a pointer in |
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.
Thanks, looks good! Hopefully, that suggestion will fix the style error
Thanks for the tip! I didn't think of formatting that way. |
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.
super tiny nitpick but otherwise this is all set, thank you!
7dcf820
to
069ed21
Compare
069ed21
to
71d19f7
Compare
Co-Authored-By: Mathias Goncalves <goncalves.mathias@gmail.com>
71d19f7
to
1d718a1
Compare
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 looks good, but I think we can make it a bit more helpful by making clear which queries can be overridden and what exactly is being overridden.
Also some style suggestions.
For format and clarity on queries. Co-Authored-By: Chris Markiewicz <effigies@gmail.com>
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.
Thanks, and sorry for all the back-and-forth. This LGTM.
* CLI changes from #2028 were ported to `parser.py` 20.0.4 (March 17, 2020) ======================= A bug-fix release improving documentation for filtering BIDS files and standardizing CIFTI volume orientation. With thanks to Ursula Tooley for the contribution. * DOC: FAQ section for BIDS filter (#2028) * FIX: Ensure BOLD and label orientations are equal (`nipreps/niworkflows#477`_). .. _`nipreps/niworkflows#477`: nipreps/niworkflows#477
#2027, one stab at it.
Added a few lines to the Usage Notes as an example of input to
--bids-filter-file
. Took me a while of digging through pybids to figure out how to set theconfig.json
up properly; I think that it would be useful to link to an example like that in the discussion of #1770, but couldn't figure out where to put it.Documentation that should be reviewed
Usage Notes - Positional arguments - bids-filter-file