Skip to content

SPSUnipi/pypsa2smspp

Repository files navigation

pypsa2smspp

Tests

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

How to develop

  1. First, clone the repository using git:

        git clone https://github.com/SPSUnipi/pypsa2smspp
  2. 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
  3. 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. The pre-commit install command installs the pre-commit hooks, which are used to check the code before committing to ensure code quality standards.

  4. Develop and test the code. For testing, please run:

        pytest

About

Class to convert a PyPSA Network into a SMSconfig file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages