Skip to main content

Convert Antares Legacy studies to GEMS format

Project description

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

Project details


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.0.tar.gz (24.7 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.0-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for antares_legacy_gems_converter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 085dbf52068ff559cb599774cfc3b9f8ddf29937bd736770c7f7c821a9c49d7b
MD5 ce6eeed0654298a5fc2a06ffa880dfc2
BLAKE2b-256 1de9bdcd108924f4183a1f54559ff35ae0a24797b38a3d5b4b886ebaee0a8b65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for antares_legacy_gems_converter-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6021f78a8940f156cdb16422add2169dac66f3a9f35764057aac857c71a94f7d
MD5 f9591ce833c849b2b20cbb358a93be25
BLAKE2b-256 f711a50cfe150523753dd41853cf42f5c857f618540b4e128a2407e809583f56

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 Pingdom Monitoring Sentry Error logging StatusPage Status page