AntaresLegacyModels-to-GEMS-Converter
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
Metadata
Release files for antares-legacy-gems-converter 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| antares_legacy_gems_converter-0.2.1.tar.gz | 34.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| antares_legacy_gems_converter-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 84.6 kB
Release files / antares_legacy_gems_converter-0.2.1.tar.gz
| Download URL | antares_legacy_gems_converter-0.2.1.tar.gz |
|---|---|
| Size | 34.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3547e6e6ba110d31b6bff76cccc1da7d20a2e3fe3b99047219afe02350058d53
|
|
BLAKE2b-256 checksum How to use checksums |
8b451a5a4e291c063e27f1504b26ba44621a9fc44ff3507d9eae2f5ddb69e76e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / antares_legacy_gems_converter-0.2.1-py3-none-any.whl
| Download URL | antares_legacy_gems_converter-0.2.1-py3-none-any.whl |
|---|---|
| Size | 50.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85a378112b6a8d7b02aae78d10de025d321cdde863bfe8816973685befaf6289
|
|
BLAKE2b-256 checksum How to use checksums |
9d76d86d4ce07b6a0af5167624ec90aadbf244d430568bbd637d5530b11e8b37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|