Skip to content

Commit

Permalink
validate descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed May 8, 2024
1 parent f230cae commit b46974e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions boutiques/bids-app-example.json → boutiques/descriptor.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"author": "chrisfilo and others",
"custom": {
"BIDSApplicationVersion": "2.0"
},
"command-line": "mkdir -p OUTPUT_DIR; /run.py BIDS_DIR OUTPUT_DIR ANALYSIS_LEVEL PARTICIPANT_LABEL SESSION_LABEL",
"container-image": {
"image": "bids/example",
"type": "docker"
},
"description": "See https://github.com/BIDS-Apps/example",
"descriptor-url": "https://github.com/BIDS-Apps/example/blob/master/boutiques/bids-app-example.json",
"descriptor-url": "https://github.com/BIDS-Apps/example/blob/master/boutiques/descriptorjson",
"groups": [
{
"description": "For a participants analysis, an output directory name must be specified. For a group analysis, a directory containing the output of participant-level analyses must be selected. ",
"description": "For a participants analysis, an output directory name must be specified. For a group analysis, a directory containing the output of participant-level analyses must be selected.",
"id": "output_directory",
"members": [
"output_dir_name",
Expand Down
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def main(argv=sys.argv):

if unknowns:
print(f"The following arguments are unknown: {unknowns}")
exit(1)
exit(64)

if not args.skip_bids_validator:
run(f"bids-validator {args.bids_dir}")
Expand Down

0 comments on commit b46974e

Please sign in to comment.