Skip to content
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

Added skip_citation_process flag to skip processing citation.md #1876

Merged
merged 3 commits into from Nov 25, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion fmriprep/cli/run.py
Expand Up @@ -73,6 +73,9 @@ def get_parser():
g_bids.add_argument('--skip_bids_validation', '--skip-bids-validation', action='store_true',
default=False,
help='assume the input dataset is BIDS compliant and skip the validation')
g_bids.add_argument('--skip_citation_process', '--skip-citation-process', action='store_true',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
g_bids.add_argument('--skip_citation_process', '--skip-citation-process', action='store_true',
g_bids.add_argument('--skip-citation-process', action='store_true',

Usually the _ one is there for backwards compatibility with old submission scripts. - is preferred, so we can use it on new options.

And this should go in g_perfm, not g_bids.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will update the PR. Testing the update now.

default=False,
help='skip processing HTML and LaTeX formatted citation with pandoc')
g_bids.add_argument('--participant_label', '--participant-label', action='store', nargs='+',
help='a space delimited list of participant identifiers or a single '
'identifier (the sub- prefix can be removed)')
Expand Down Expand Up @@ -444,7 +447,7 @@ def main():
for ext in ('bib', 'tex', 'md', 'html')
}

if citation_files['md'].exists():
if not opts.skip_citation_process and citation_files['md'].exists():
# Generate HTML file resolving citations
cmd = ['pandoc', '-s', '--bibliography',
pkgrf('fmriprep', 'data/boilerplate.bib'),
Expand Down