diff --git a/.circleci/config.yml b/.circleci/config.yml index 3dc05bf8..3ed25686 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ jobs: type: string default: "3.8" machine: - image: ubuntu-2004:202201-02 + image: ubuntu-2404:2024.08.1 working_directory: /home/circleci/src/CuBIDS steps: - checkout: @@ -34,7 +34,7 @@ jobs: # Add nodejs and the validator conda install nodejs npm install -g yarn && \ - npm install -g bids-validator + npm install -g bids-validator@1.14.14-dev.0 # Install CuBIDS pip install -e .[tests] @@ -83,7 +83,7 @@ jobs: deploy_pypi: machine: - image: ubuntu-2004:202201-02 + image: ubuntu-2404:2024.08.1 working_directory: /home/circleci/src/CuBIDS steps: - checkout: diff --git a/cubids/validator.py b/cubids/validator.py index 01dad11c..414f19ad 100644 --- a/cubids/validator.py +++ b/cubids/validator.py @@ -16,7 +16,8 @@ def build_validator_call(path, ignore_headers=False): """Build a subprocess command to the bids validator.""" # build docker call # CuBIDS automatically ignores subject consistency. - command = ["bids-validator", "--verbose", "--json", "--ignoreSubjectConsistency"] + command = ["bids-validator", path, "--verbose", "--json", "--ignoreSubjectConsistency"] + if ignore_headers: command.append("--ignoreNiftiHeaders")