Skip to content

Commit

Permalink
Merge pull request #201 from arnaudbore/get_readme_from_bids_toolkit
Browse files Browse the repository at this point in the history
Get README from bids toolkit
  • Loading branch information
arnaudbore authored Jun 8, 2023
2 parents 40a7605 + 90a3fcf commit bd8dff0
Showing 1 changed file with 7 additions and 3 deletions.
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

0 comments on commit bd8dff0

Please sign in to comment.