Convert Antares Legacy studies to GEMS format
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file antares_legacy_gems_converter-0.2.0.tar.gz.
File metadata
- Download URL: antares_legacy_gems_converter-0.2.0.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
085dbf52068ff559cb599774cfc3b9f8ddf29937bd736770c7f7c821a9c49d7b
|
|
| MD5 |
ce6eeed0654298a5fc2a06ffa880dfc2
|
|
| BLAKE2b-256 |
1de9bdcd108924f4183a1f54559ff35ae0a24797b38a3d5b4b886ebaee0a8b65
|
File details
Details for the file antares_legacy_gems_converter-0.2.0-py3-none-any.whl.
File metadata
- Download URL: antares_legacy_gems_converter-0.2.0-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6021f78a8940f156cdb16422add2169dac66f3a9f35764057aac857c71a94f7d
|
|
| MD5 |
f9591ce833c849b2b20cbb358a93be25
|
|
| BLAKE2b-256 |
f711a50cfe150523753dd41853cf42f5c857f618540b4e128a2407e809583f56
|