From 1ed38fa9729c6997565a29b665c5552f3fdeb44f Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Sat, 2 Nov 2019 12:41:11 -0700 Subject: [PATCH] maint: set ``-vv``, ``--sloppy``, ``--nprocs``, and ``--omp-nthreads`` on CircleCI Also, make nipype config file available. Close #30 --- .circleci/config.yml | 10 ++++++---- dmriprep/cli/run.py | 4 ---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 52ad463..fda8d7a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -123,7 +123,7 @@ jobs: tar xvzf THP002_data.tar.gz -C /tmp/data/ else echo "Dataset THP002 was cached" - fi + fi - run: name: Get FreeSurfer derivatives for THP002 command: | @@ -219,13 +219,15 @@ jobs: sudo setfacl -m group:$(id -gn):rwx /tmp/THP002/derivatives sudo setfacl -d -m group:$(id -gn):rwx /tmp/THP002/work && \ sudo setfacl -m group:$(id -gn):rwx /tmp/THP002/work - docker run -e FS_LICENSE=$FS_LICENSE --rm=false \ + docker run -e FS_LICENSE=$FS_LICENSE --rm \ -v /tmp/data/THP002:/data \ -v /tmp/THP002/derivatives:/out \ -v /tmp/fslicense/license.txt:/tmp/fslicense/license.txt:ro \ + -v /tmp/config/nipype.cfg:/home/dmriprep/.nipype/nipype.cfg \ -v /tmp/THP002/work:/work \ --user $(id -u):$(id -g) \ - nipreps/dmriprep:latest /data /out participant --anat-only --notrack --skip-bids-validation -w /work + nipreps/dmriprep:latest /data /out participant -vv --sloppy --anat-only \ + --notrack --skip-bids-validation -w /work --omp-nthreads 2 --nprocs 2 - run: name: Clean-up after anatomical run command: | @@ -452,7 +454,7 @@ workflows: - THP002: requires: - build - - get_data + - get_data filters: branches: ignore: diff --git a/dmriprep/cli/run.py b/dmriprep/cli/run.py index 05f74b0..67008e8 100755 --- a/dmriprep/cli/run.py +++ b/dmriprep/cli/run.py @@ -235,10 +235,6 @@ def main(): from ..utils.sentry import sentry_setup sentry_setup(opts, exec_env) - if opts.debug: - print('WARNING: Option --debug is deprecated and has no effect', - file=sys.stderr) - # Validate inputs if not opts.skip_bids_validation: print("Making sure the input data is BIDS compliant (warnings can be ignored in most "