Skip to main content

AntaresLegacyModels-to-GEMS-Converter

License: MPL v2 Python

A Python tool that converts Antares Simulator legacy studies into the GEMS format.

Background

Antares Simulator is an open-source power system simulator developed by RTE to assess the adequacy and economic performance of interconnected energy systems. Historically, the mathematical models of its components — thermal clusters, hydro units, short-term storage, and so on — were defined implicitly inside the solver's code.

GEMS (Generic Energy Modelling Scheme) is a high-level modelling language that brings these model definitions out of the codebase and into plain YAML files, where variables, parameters, and constraints are expressed using natural mathematical syntax. A GEMS model library can be used directly with Antares Simulator's dynamic modeler or with the GemsPy Python interpreter.

Purpose

This tool automates the translation of Antares Simulator studies into valid GEMS system files (YAML), making it straightforward to migrate existing studies to the new modelling framework — with no manual rewriting required.

Installation

Requires Python 3.11+.

From PyPI:

pip install antares-legacy-gems-converter

From source (for development):

Requires uv. Python library versions are pinned in pyproject.toml and locked in uv.lock (see COMPATIBILITY.md).

git clone https://github.com/AntaresSimulatorTeam/AntaresLegacyModels-to-GEMS-Converter.git
cd AntaresLegacyModels-to-GEMS-Converter
uv sync --group dev

Usage

First, fill in a configuration file (INI format):

[study]
study_path    = /path/to/your/antares-study
output_folder = /path/to/output
lib_paths     = /path/to/antares_legacy_models.yml
mode          = FULL

For HYBRID mode, also add:

[hybrid]
model_list = thermal, battery

Then run the converter:

antares-to-gems --conf path/to/config.ini --logging path/to/output.log

The --conf and --logging arguments are optional — they default to data/config.ini and data/logging.log respectively.

Related projects

Project Description
Antares Simulator Open-source power system simulator
GEMS Graph-based algebraic modelling language
GemsPy Python interpreter for the GEMS modelling framework
PyPSA-to-GEMS-Converter Converter from PyPSA models to GEMS format

License

Mozilla Public License v2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antares_legacy_gems_converter-0.2.1.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

antares_legacy_gems_converter-0.2.1-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file antares_legacy_gems_converter-0.2.1.tar.gz.

File metadata

File hashes

Hashes for antares_legacy_gems_converter-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3547e6e6ba110d31b6bff76cccc1da7d20a2e3fe3b99047219afe02350058d53
MD5 62cb133a83f0d7e9c0c47a409fbd953b
BLAKE2b-256 8b451a5a4e291c063e27f1504b26ba44621a9fc44ff3507d9eae2f5ddb69e76e

See more details on using hashes here.

File details

Details for the file antares_legacy_gems_converter-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for antares_legacy_gems_converter-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85a378112b6a8d7b02aae78d10de025d321cdde863bfe8816973685befaf6289
MD5 1ebe4f263498e7256a6693f007527d07
BLAKE2b-256 9d76d86d4ce07b6a0af5167624ec90aadbf244d430568bbd637d5530b11e8b37

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page