Development Setup
Setup
Each project is a standalone PyTorch repository. Clone the one you want to work on and set up a fresh environment (Python ≥ 3.12):
| Project | Repository | Editable install |
|---|---|---|
| DeepLens | vccimaging/DeepLens | pip install -e ".[dev]" |
| End2endImaging | vccimaging/End2endImaging | pip install -r requirements.txt |
# Clone the project (DeepLens shown; substitute End2endImaging as needed)
git clone https://github.com/vccimaging/DeepLens.git
cd DeepLens
# Create and activate the conda environment
conda env create -f environment.yml -n deeplens_env
conda activate deeplens_env
# Install in editable mode with development extras
pip install -e ".[dev]"
Workflow
- Fork the repository and clone your fork.
- Create a branch from
main:git checkout -b fix/short-description. - Make your changes, keeping commits focused and well-described.
-
Format your code with Ruff:
-
Add tests for new behaviour and run the suite:
-
Open a pull request against
main(see the PR guidelines).