Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Graphical user interface for simulating electrical networks based on the pandapower library
The Electrical Grid Simulator (abbreviated as EGS) is a graphical user interface application for simulating electrical networks based on the pandapower library. The main objective is to allow the creation of mathematical models for steady-state electrical grids from a user-friendly interface. It adds an extensions system for including new calculation or simulation algorithms. Extensions are implemented as standard Python packages, so they can be distributed through the PyPI repository.
EGS is developed at the National Technological University, Santa Fe Regional Faculty (UTN-FRSF), at the Center for Research and Development in Electrical Engineering and Energy Systems (CIESE), Argentina.
Warning
This application is in an early stage of development. So you can expect incomplete sections and some (or many) bugs. New changes may cause incompatibilities with older versions (old files that no longer work with newer versions of the program).
EGS is built in Python and entirely from open source and free software. The main core components are:
Qt6
port (fork) of the NodeGraphQt library for building the graph (schematic network graphic).EGS is implemented as a Python package uploaded to the PyPI repository. pandapower
and other packages listed above are set as dependencies.
[!NOTE]
Starting with version 0.0.8.0, the EGS package includes a fork ofNodeGraphQt
ported toQt6
(using thePySide6
library). This implementation is renamed toNodeGraphQt6
in order to avoid conflicts. These changes allow the application to run on recent versions of Python.
With EGS you can build and set up the model of an electrical grid in a graphical way. The application also allows you to perform AC balanced power flow calculations (other calculations supported by pandapower
may be added in the future). For other types of simulations and calculations, you can proceed according to two alternatives:
Export the Data model and the last power flow results to a JSON format file ready to be imported from a Python script through pandapower
. Then, any calculation or processing can be done from the script. The export is done from the graphical interface, while the subsequent import is done as indicated in the pandapower documentation, using the pandapower.from_json()
function.
Incorporate the required calculation functionality from an extension developed in Python. This way, the calculation is executed from within EGS. Extensions are implemented as regular Python packages. An Optimal Power Flow (OPF) extension is available in the PyPI repository (package name: electricalsim-opf-quadratic).
Models generated by EGS can be saved in a .egs file. You can then reopen the file whenever you need it and retrieve even the results of the last power flow run.
EGS is installed using pip
, the official Python package manager.
On GNU/Linux and MacOS execute the following order in a terminal:
pip install electricalsim
On MS Windows you may prefer:
python -m pip install electricalsim
In order to upgrade EGS via pip
, execute the following in a terminal:
pip install electricalsim -U
On MS Windows you may prefer:
python -m pip install electricalsim -U
Once installed, you can run it with the command:
egs
If you prefer to run the program in a more practical way, just execute this command only once:
egs-create-shortcut
This will add a shortcut launcher to your desktop and to your application menu. Note that this launcher will not work if you are installing the application into a Python virtual environment.
If you want to remove the application, execute:
pip uninstall electricalsim
On MS Windows:
python -m pip uninstall electricalsim
Note that shortcuts added with the egs-create-shortcut
command are not removed. So you must delete them manually.
Extensions available in the PyPI repository can be installed using pip
. For example, the Optimal Power Flow extension is installed with:
pip install electricalsim-opf-quadratic
On MS Windows:
python -m pip install electricalsim-opf-quadratic
This project uses the MIT license.
FAQs
Graphical user interface for simulating electrical networks based on the pandapower library
We found that electricalsim demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.