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.

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

Metadata

Release files for antares-legacy-gems-converter 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for antares-legacy-gems-converter 0.5.0
File Size Uploaded
antares_legacy_gems_converter-0.5.0.tar.gz 39.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for antares-legacy-gems-converter 0.5.0
File Interpreter ABI Platform
antares_legacy_gems_converter-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 97.7 kB

Release files / antares_legacy_gems_converter-0.5.0.tar.gz

Download URL antares_legacy_gems_converter-0.5.0.tar.gz
Size 39.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2e74582fdcf7d21c17f2696000716950942d89a771a0404f380178b31c6e5c3f
BLAKE2b-256 checksum
How to use checksums
6be9feffb89031ca18c0107d24db0602aa120a6d63ccdc1ea992830574b0007a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / antares_legacy_gems_converter-0.5.0-py3-none-any.whl

Download URL antares_legacy_gems_converter-0.5.0-py3-none-any.whl
Size 58.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
563fd32d9cd952ede21c492d74db70e83431907e98273ba633da2392becfbbec
BLAKE2b-256 checksum
How to use checksums
bc8eea26b6bba43efb2045fd488a26ce809d69702f4188da7d6ad75bc6698a05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page