Development Setup
Setup
Each project is a standalone PyTorch repository. Clone the one you want to work on and follow that repository's environment file. DeepLens requires 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.
-
Lint and format changed Python files with Ruff:
Before review, run the repository-wide gates:
ruff check .andruff format --check .. Do not apply--unsafe-fixeswithout reviewing each proposed change. -
Add tests for new behaviour and run the suite:
-
Open a pull request against
main(see the PR guidelines).