Skip to content

Python API Installation

stepss is a Python interface to the RAMSES dynamic simulator and the Helios AC power-flow engine, enabling users to define test cases, run simulations, extract results, and perform post-processing, all within Python scripts or Jupyter notebooks.

stepss supports Windows, Linux, and macOS, for both dynamic simulation and the bundled Helios power-flow engine, and integrates with standard scientific Python libraries (NumPy, SciPy, Matplotlib).

Install stepss and all recommended dependencies via pip:

Terminal window
pip install jupyter ipython stepss

Required dependencies (matplotlib, scipy, numpy) are installed automatically.

For a minimal installation (no plotting or notebook support):

Terminal window
pip install stepss

A stepss version is the bundled RAMSES version, optionally followed by a counter: version 3.59 carries RAMSES 3.59. The counter is appended when stepss is released without a new RAMSES behind it, so a 3.59.1 would bundle RAMSES 3.59 as well. A new RAMSES release restarts the sequence with a bare version.

stepss on PyPI starts at 3.59; nothing below that can be installed.

To pin an engine version, pin the matching stepss release:

Terminal window
pip install "stepss~=3.59.0" # any 3.59.x, all bundling RAMSES 3.59

Check what an installed copy carries:

import stepss
print(stepss.__version__, stepss.__ramses_version__, stepss.__helios_version__)

On Linux, the following system libraries must be installed before running stepss:

Terminal window
sudo apt install libopenblas0 libgfortran5 libgomp1

These packages provide:

PackagePurpose
libopenblas0OpenBLAS BLAS/LAPACK routines used by the solver
libgfortran5GNU Fortran runtime required by the Fortran components of RAMSES
libgomp1OpenMP runtime for multi-core parallel execution

On most desktop Linux distributions these are already present. If stepss fails to import with a shared-library error, install the packages above and retry.

On macOS (Apple Silicon), install the GNU compiler runtimes and OpenBLAS via Homebrew before running stepss:

Terminal window
brew install gcc openblas

These provide the libgfortran, libgomp, and libopenblas dylibs that the bundled arm64 binaries link against. Intel Macs are not supported.

stepss can display observables in real-time during simulation using Gnuplot. This is particularly useful for long simulations to monitor progress.

Terminal window
sudo apt-get install gnuplot-x11
PlatformLibraryNotes
Windowsramses.dllPrimary platform, full support
Linuxramses.soFull support (requires the system libraries above)
macOSramses.soApple Silicon (arm64) only; requires the Homebrew runtimes above