Skip to content

Commit

Permalink
Simplify command.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Jan 17, 2024
1 parent e91b612 commit f9280d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cubids/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@
def build_validator_call(path, ignore_headers=False):
"""Build a subprocess command to the bids validator."""
# build docker call
command = ["bids-validator", "--verbose", "--json"]
# CuBIDS automatically ignores subject consistency.
command = ["bids-validator", "--verbose", "--json", "--ignoreSubjectConsistency"]

if ignore_headers:
command.append("--ignoreNiftiHeaders")

# CuBIDS automatically ignores subject consistency.
command.append("--ignoreSubjectConsistency")

command.append(path)

return command
Expand Down

0 comments on commit f9280d9

Please sign in to comment.