Skip to content

Testing

Mathias Goncalves edited this page Sep 21, 2023 · 1 revision

Quicker Patch Testing

Rather than having to re-pull Docker or Singularity images, some patches can be easily applied to existing images. To do this:

1a. If you do not yet have a local copy of the repository: Make a local copy (clone)

git clone https://github.com/nipreps/nibabies.git --branch <branch-name> --single-branch

1b. If you already have a local copy

cd <path/to/nibabies>
git fetch origin <branch-name>
git checkout <branch-name>
  1. Add in the relevant binding to your nibabies command
# Singularity
-B </path/to/nibabies>/nibabies:/opt/conda/envs/nibabies/lib/python3.10/site-packages/nibabies:ro

# Docker
-v </path/to/nibabies>/nibabies:/opt/conda/envs/nibabies/lib/python3.10/site-packages/nibabies:ro
Clone this wiki locally