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

Get README from bids toolkit #201

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions dcm2bids/cli/dcm2bids_scaffold.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from dcm2bids.utils.io import write_txt
from dcm2bids.utils.args import add_overwrite_arg, assert_dirs_empty
from dcm2bids.utils.utils import DEFAULT
from dcm2bids.utils.utils import DEFAULT, run_shell_command
from dcm2bids.utils.scaffold import bids_starter_kit


Expand Down Expand Up @@ -64,8 +64,12 @@ def main():
bids_starter_kit.participants_tsv)

# README
write_txt(opj(args.output_dir, "README"),
bids_starter_kit.README)
try:
run_shell_command(['wget', '-q', '-O', opj(args.output_dir, "README"),
'https://github.com/bids-standard/bids-starter-kit/blob/main/templates/README.MD'])
except:
write_txt(opj(args.output_dir, "README"),
bids_starter_kit.README)


if __name__ == "__main__":
Expand Down