This package aims at providing a python interface between PyPSA and SMS++ models using a simple python interface. The package aims to support:
- Convert a PyPSA model to SMS++
- Execute the optimization of the so-created SMS++ model
- Parse the solution from the SMS++ model to PyPSA
-
First, clone the repository using git:
git clone https://github.com/SPSUnipi/pypsa2smspp
-
Create a virtual environment using venv or conda. For exaample, using venv:
python -m venv .venv source .venv/bin/activate
Alternatively, using conda:
conda create -n pypsa2smspp python=3.10 conda activate pypsa2smspp
-
Install the required packages and pre-commit hooks:
pip install -e .[dev] pre-commit install
Note that the
-e
command line option installs the package in editable mode, so that changes to the source code are immediately available in the environment being used. The[dev]
option installs the packages required for development. Thepre-commit install
command installs the pre-commit hooks, which are used to check the code before committing to ensure code quality standards. -
Develop and test the code. For testing, please run:
pytest