Skip to content

Commit 10b2585

Browse files
authored
Merge pull request #20 from gkiar/master
made validation optional
2 parents 77bbe24 + 6ed5970 commit 10b2585

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

run.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@ def run(command, env={}):
4141
'provided all subjects should be analyzed. Multiple '
4242
'participants can be specified with a space separated list.',
4343
nargs="+")
44+
parser.add_argument('--skip_bids_validator', help='Whether or not to perform BIDS dataset validation',
45+
action='store_true')
4446
parser.add_argument('-v', '--version', action='version',
4547
version='BIDS-App example version {}'.format(__version__))
4648

4749

4850
args = parser.parse_args()
4951

50-
run('bids-validator %s'%args.bids_dir)
52+
if not args.skip_bids_validator:
53+
run('bids-validator %s'%args.bids_dir)
5154

5255
subjects_to_analyze = []
5356
# only for a subset of subjects

0 commit comments

Comments
 (0)