Full documentation available here
Supported Python Versions: 3.10, 3.11, 3.12
Supported Operating Systems: macOS, Linux
Clone the repository on your machine
git clone https://github.com/OxfordRSE/L2Gv2.git
Create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate
Install the dependencies
pip install '.[dev,docs]'
This will install dependencies, including pytorch and pytorch-geometric. For macOS, CPU version of pytorch will be installed, whereas for Linux, a GPU version targeting the latest CUDA release will be installed. Installation of alternate or older CUDA versions may be supported in the future.
To simplify testing for developers, we provide a noxfile, which allows you to run the above steps and test with one command. You'll first need to install nox:
brew install nox # macOS
pipx install nox # with pipx
sudo apt install nox # debian
sudo dnf install nox # fedora
uvx nox # with uv
Then to run all the checks, including linting:
nox
To display a list of tasks:
nox --list
To run only a task, such as lint
, run nox -s lint
.
If you are only using this library as a dependency, use:
pip install git+https://github.com/OxfordRSE/L2Gv2
For development, we highly recommend installing the pre-commit hook that
helps lint and autoformat on every commit. To install pre-commit, run
pre-commit install
once in the repository; this will ensure that checks run
before every commit.
This project is licensed under the MIT license.
The following people contributed to this project (emoji key).
This project follows the all-contributors specification.