Getting started
Required software¶
User supplied software¶
64-bit Linux or Windows
Python 3.12 or above
Optional: Git
SINTEF supplied software¶
LTM Core¶
Existing users can download LTM Core from the portal at https://
Download and extract LTM Core into a folder. This folder contains binaries pyltm will use to run the models. If the folder is available in PATH, there is no need to to anything more. If the folder is not in PATH, the location of the binaries must be supplied when creating a session with pyltmapi.
pyltm¶
pyltm is the API exposing a Python interface into LTM Core and it’s applications and data formats.
Can be downloaded from the portal at https://
It can also be installed through the Gitlab registry pyltm-install-with-pip.
pyltmapi¶
Open source wrapper around pyltm. Can be installed from PyPI or by cloning a Git repository.
Virtual environment¶
Create a virtual environment and activate it:
python -m venv ltm-venv
source ./ltm-venv/bin/activate
pip install pyltmapi
pip install pyltm*.whlpython -m venv ltm-venv
.\ltm-venv\Scripts\Activate.ps1
pip install pyltmapi
pip install pyltm*.whl(Optional): Add LTM core to PATH.
export PATH=/path/to/ltm-core/bin:$PATH$env:PATH+=";C:\path\to\ltm-core\bin"Install pyltm with pip¶
pyltm itself is not availble through PyPI, but it is availble through SINTEF Gitlab instance. Contact SINTEF to get a token if you’d like to use this method instead of the above.
export GITLAB_TOKEN=abc123
pip install pyltm --index-url https://__token__:$GITLAB_TOKEN@https://gitlab.sintef.no/api/v4/projects/17012/packages/pypi/simpleAdd repository information to ~/.pypirc.
[distutils]
index-servers =
gitlab-pyltm
[gitlab-pyltm]
repository = https://gitlab.sintef.no/api/v4/projects/17012/packages/pypi/simple
username = __token__
password = abc123