Introduction
The package includes tools for experimentation on simulation models. In the current version experimentation on top of OSP models is implemented. The package introduces a json5-based file format for experiment specification. Based on this specification
a system model link is stored
active variables are defined and alias names can be given
the simulation base case variable settings are defined
a hierarchy of sub-cases can be defined with their dedicated variable settings
the common results to be retrieved from simulation runs is defined
Other features are
alias variables can address multiple components of the same type, ensuring efficient experimentation.
alias variables can vectors, even in FMI2 models. It is possible to set/get slices of such vectors
variable settings can be time-based, enabling the definition of scenarios
variable retrievals (results) can be time-based (in general and per case), enabling efficient model verification
The package does not support systematic variable sweep with respect to sets of variables. Such sweeps should be performed with separate tools. The package might be compared with navigating through a huge house, where the cases represent the various rooms, while searching for object in a given room is left to separate tools.
The package is designed as support tool for Assurance of Simulation Models, see DNV-RP-0513.
The package is currently under development. More instructions and documentation will be added.
Installation
pip install sim-explorer
Development Setup
1. Install uv
This project uses uv as package manager.
If you haven’t already, install uv, preferably using it’s “Standalone installer” method:
..on Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
..on MacOS and Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
(see docs.astral.sh/uv for all / alternative installation methods.)
Once installed, you can update uv to its latest version, anytime, by running:
uv self update
2. Install Python
This project requires Python 3.11 or later.
If you don’t already have a compatible version installed on your machine, the probably most comfortable way to install Python is through uv:
uv python install
This will install the latest stable version of Python into the uv Python directory, i.e. as a uv-managed version of Python.
Alternatively, and if you want a standalone version of Python on your machine, you can install Python either via winget:
winget install --id Python.Python
or you can download and install Python from the python.org website.
3. Clone the repository
Clone the sim-explorer repository into your local development directory:
git clone https://github.com/dnv-opensource/sim-explorer path/to/your/dev/sim-explorer
Change into the project directory after cloning:
cd sim-explorer
4. Install dependencies
Run uv sync -U to create a virtual environment and install all project dependencies into it:
uv sync -U
Note: Using --no-dev will omit installing development dependencies.
Explanation: The -U option stands for --update. It forces uv to fetch and install the latest versions of all dependencies, ensuring that your environment is up-to-date.
Note: uv will create a new virtual environment called .venv in the project root directory when running uv sync -U the first time. Optionally, you can create your own virtual environment using e.g. uv venv, before running uv sync -U.
5. (Optional) Activate the virtual environment
When using uv, there is in almost all cases no longer a need to manually activate the virtual environment.
uv will find the .venv virtual environment in the working directory or any parent directory, and activate it on the fly whenever you run a command via uv inside your project folder structure:
uv run <command>
However, you still can manually activate the virtual environment if needed. When developing in an IDE, for instance, this can in some cases be necessary depending on your IDE settings. To manually activate the virtual environment, run one of the “known” legacy commands:
..on Windows:
.venv\Scripts\activate.bat
..on Linux:
source .venv/bin/activate
6. Install pre-commit hooks
The .pre-commit-config.yaml file in the project root directory contains a configuration for pre-commit hooks. To install the pre-commit hooks defined therein in your local git repository, run:
uv run pre-commit install
All pre-commit hooks configured in .pre-commit-config.yam will now run each time you commit changes.
pre-commit can also manually be invoked, at anytime, using:
uv run pre-commit run --all-files
To skip the pre-commit validation on commits (e.g. when intentionally committing broken code), run:
uv run git commit -m <MSG> --no-verify
To update the hooks configured in .pre-commit-config.yaml to their newest versions, run:
uv run pre-commit autoupdate
7. Test that the installation works
To test that the installation works, run pytest in the project root folder:
uv run pytest
Meta
Copyright (c) 2026 DNV AS. All rights reserved.
Siegfried Eisinger - @LinkedIn - siegfried.eisinger@dnv.com
Jorge Luis Mendez - @LinkedIn - jorge.luis.mendez@dnv.com
Distributed under the MIT license. See LICENSE for more information.
Contributing
Anybody in the OSP community is welcome to contribute to this code, to make it better, and especially including other features from model assurance, as we firmly believe that trust in our models is needed if we want to base critical decisions on the support from these models.
To contribute, follow these steps:
Fork it https://github.com/dnv-opensource/sim-explorer/fork/
Create an issue in your GitHub repo
Create your branch based on the issue number and type (git checkout -b issue-name)
Evaluate and stage the changes you want to commit (git add -i)
Commit your changes (git commit -am 'place a descriptive commit message here')
Push to the branch (git push origin issue-name)
Create a new Pull Request in GitHub
For your contribution, please make sure you follow the STYLEGUIDE before creating the Pull Request.
Metadata
Release files for sim-explorer 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sim_explorer-0.2.2.tar.gz | 3.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sim_explorer-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.7 MB
Release files / sim_explorer-0.2.2.tar.gz
| Download URL | sim_explorer-0.2.2.tar.gz |
|---|---|
| Size | 3.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
532a733289754bf9e3f046a6e48841d624e0ef7c002c390deae2e2f1d5f81666
|
|
BLAKE2b-256 checksum How to use checksums |
4eaedfc819d1a73cf6fea9dd7c41b5dc4ee4365300b7d8cdf5f2aeca50d9d68f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 26, 2026.
Transparency logRelease files / sim_explorer-0.2.2-py3-none-any.whl
| Download URL | sim_explorer-0.2.2-py3-none-any.whl |
|---|---|
| Size | 56.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6fb58133376fe5cfef0e4e8482bd50c97065febd51236bdc7e5609686ae68e8
|
|
BLAKE2b-256 checksum How to use checksums |
1870c14ff8501450a83987faf4376322665c0616786a9a5e6c320f64dc21ed82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 26, 2026.
Transparency log