From a3ce6fcc8622ab608ee5418b5358dd12a6f2e79e Mon Sep 17 00:00:00 2001 From: Tien Tong Date: Wed, 9 Oct 2024 08:01:30 -0400 Subject: [PATCH] Update to ubuntu 2404:2024.08.1 and bids-validator@1.14.14-dev.0 For bids-validator@1.14.14-dev.0, data_path argument is before all other arguments --- .circleci/config.yml | 6 +++--- cubids/validator.py | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) 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")