Installation
Follow these steps to install and set up the PowerDynamicEstimator package.
Prerequisites
Before proceeding, ensure you have the following installed:
Python 3.10 or later
Installation Steps
Clone the repository:
git clone https://gitlab.nccr-automation.ch/mkatanic/powerdynamicestimator cd PowerDynamicEstimator
Install dependencies:
pip install -r requirements.txt
You are now ready to use the PowerDynamicEstimator package.
Verifying Installation
To verify the installation:
Run the main script to ensure everything is working:
cd pydynamicestimator python -m main
If default figures of the estimation of dynamic and algebraic states are plotted, the installation was successful.

Figure 1: Ground-truth and estimated voltage magnitudes.

Figure 2: Ground-truth and estimated internal differential states.
Troubleshooting
If you encounter issues during installation, verify that all prerequisites are installed.
If dependency conflicts occur, try updating your package manager or using a clean Python environment.
Ensure that you are in the correct directory when running the script.