Installation

Requirements

  • Python >=3.9,<3.14
  • PyTorch >=2.2.2
  • NumPy >=1.23

Install from the private package index

Install PyTorch first:

pip install torch

Then install lls:

pip install --index-url https://pypi.salodev.no/ lls

On older Intel macOS systems, use the compatibility extra:

pip install --index-url https://pypi.salodev.no/ lls --extra mac-intel

Install from source

git clone git@github.com:c-salomonsen/LLS.git
cd LLS
uv sync

If you prefer pip:

python -m venv .venv
source .venv/bin/activate
pip install -e .

Verify the install

python -c "from lls import fit_compartment_model, lls_3k, lls_4k_vB; print('ok')"

Optional dependency groups

  • uv sync --group sim installs the simulation and parquet tooling.
  • uv sync --group viz installs notebook and plotting dependencies.
  • uv sync --group docs installs MkDocs dependencies for local docs work.

Preview the docs locally

uv sync --group docs
uv run mkdocs serve

Build the static site with strict link checking:

uv run mkdocs build --strict

After installation, most users should continue with Use your own TAC, AIF, and time data.