From b46974ef14193b96399627e43d16a169e361d0b9 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Wed, 8 May 2024 23:30:28 +0200 Subject: [PATCH] validate descriptor --- boutiques/{bids-app-example.json => descriptor.json} | 7 +++++-- run.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) rename boutiques/{bids-app-example.json => descriptor.json} (98%) diff --git a/boutiques/bids-app-example.json b/boutiques/descriptor.json similarity index 98% rename from boutiques/bids-app-example.json rename to boutiques/descriptor.json index a0230e0..2728e7f 100644 --- a/boutiques/bids-app-example.json +++ b/boutiques/descriptor.json @@ -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", diff --git a/run.py b/run.py index 5bfc32c..03f1c7b 100755 --- a/run.py +++ b/run.py @@ -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}")