Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Getting started

Required software

User supplied software

SINTEF supplied software

LTM Core

Existing users can download LTM Core from the portal at https://ltm.sintef.energy/files/ltm-releases/

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://ltm.sintef.energy/files/?tax[wpdmcategory]=beta-releases

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:

Linux
Windows (PowerShell)
python -m venv ltm-venv
source ./ltm-venv/bin/activate
pip install pyltmapi
pip install pyltm*.whl

(Optional): Add LTM core to PATH.

Linux
Windows (PowerShell)
export PATH=/path/to/ltm-core/bin:$PATH

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/simple

Add 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