Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
Statistics
  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • Open Issues: 0
  • Releases: 7
Created over 1 year ago · Last pushed 10 months ago
Metadata Files
Readme Changelog License Citation

README.rst

.. image:: https://img.shields.io/pypi/v/sim-explorer.svg?color=blue
   :target: https://pypi.org/project/sim-explorer
   :alt: pypi

.. image:: https://img.shields.io/pypi/pyversions/sim-explorer.svg?color=blue
   :target: https://pypi.org/project/sim-explorer
   :alt: versions

.. image:: https://img.shields.io/pypi/l/sim-explorer.svg
   :target: https://github.com/dnv-opensource/sim-explorer/blob/main/LICENSE
   :alt: license

.. image:: https://img.shields.io/github/actions/workflow/status/dnv-opensource/sim-explorer/.github%2Fworkflows%2Fnightly_build.yml?label=ci
   :alt: ci

.. image:: https://img.shields.io/github/actions/workflow/status/dnv-opensource/sim-explorer/.github%2Fworkflows%2Fpush_to_release.yml?label=docs
   :target: https://dnv-opensource.github.io/sim-explorer/README.html
   :alt: docs


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.10 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`` to create a virtual environment and install all project dependencies into it:

``uv sync``

Note: Using ``--no-dev`` will omit installing development dependencies.

Note: ``uv`` will create a new virtual environment called ``.venv`` in the project root directory when running
``uv sync`` the first time. Optionally, you can create your own virtual environment using e.g. ``uv venv``, before running
``uv sync``.


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 ``

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  --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) 2024 `DNV `_ AS. All rights reserved.

Siegfried Eisinger - siegfried.eisinger@dnv.com

Distributed under the MIT license. See `LICENSE `_ for more information.

`https://github.com/dnv-opensource/sim-explorer `_

Contribute
----------
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:

1. Fork it ``_
2. Create an issue in your GitHub repo
3. Create your branch based on the issue number and type (``git checkout -b issue-name``)
4. Evaluate and stage the changes you want to commit (``git add -i``)
5. Commit your changes (``git commit -am 'place a descriptive commit message here'``)
6. Push to the branch (``git push origin issue-name``)
7. Create a new Pull Request in GitHub

For your contribution, please make sure you follow the `STYLEGUIDE `_ before creating the Pull Request.

Owner

  • Name: DNV open source
  • Login: dnv-opensource
  • Kind: organization
  • Location: Norway

Open source from DNV

Citation (CITATION.cff)

title: sim-explorer
version: 0.2.1
abstract: >-
  Experimentation tools on top of OSP simulation models.
type: software
authors:
  - name: DNV AS
    address: 'Veritasveien 1'
    post-code: '1363'
    city: Høvik
    country: NO
    website: 'https://www.dnv.com/'
  - given-names: Siegfried
    family-names: Eisinger
    affiliation: DNV
    email: Siegfried.Eisinger@dnv.com
keywords:
  - simulation
  - model
  - FMI
  - OSP
license: MIT
license-url: 'https://dnv-opensource.github.io/sim-explorer/LICENSE.html'
url: 'https://dnv-opensource.github.io/sim-explorer/README.html'
repository-code: 'https://github.com/dnv-opensource/sim-explorer'
message: 'Please cite this software using these metadata.'
cff-version: 1.2.0

GitHub Events

Total
  • Create event: 27
  • Issues event: 6
  • Release event: 18
  • Delete event: 17
  • Issue comment event: 8
  • Member event: 1
  • Push event: 307
  • Pull request review comment event: 2
  • Pull request review event: 12
  • Pull request event: 13
Last Year
  • Create event: 27
  • Issues event: 6
  • Release event: 18
  • Delete event: 17
  • Issue comment event: 8
  • Member event: 1
  • Push event: 307
  • Pull request review comment event: 2
  • Pull request review event: 12
  • Pull request event: 13

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 254
  • Total Committers: 3
  • Avg Commits per committer: 84.667
  • Development Distribution Score (DDS): 0.484
Past Year
  • Commits: 222
  • Committers: 3
  • Avg Commits per committer: 74.0
  • Development Distribution Score (DDS): 0.41
Top Committers
Name Email Commits
Claas c****k@d****m 131
Eisinger S****r@d****m 76
Mendez J****z@d****m 47
Committer Domains (Top 20 + Academic)
dnv.com: 3

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 3
  • Total pull requests: 10
  • Average time to close issues: 6 days
  • Average time to close pull requests: 8 days
  • Total issue authors: 1
  • Total pull request authors: 3
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.2
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 10
  • Average time to close issues: 6 days
  • Average time to close pull requests: 8 days
  • Issue authors: 1
  • Pull request authors: 3
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.2
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ClaasRostock (3)
Pull Request Authors
  • ClaasRostock (6)
  • eisDNV (4)
  • Jorgelmh (3)
Top Labels
Issue Labels
bug (1) maintenance (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 33 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 6
  • Total maintainers: 2
pypi.org: sim-explorer

Experimentation tools on top of OSP simulation models.

  • Homepage: https://github.com/dnv-opensource/sim-explorer
  • Documentation: https://dnv-opensource.github.io/sim-explorer/README.html
  • License: MIT License Copyright (c) 2025 [DNV](https://www.dnv.com) [open source](https://github.com/dnv-opensource) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.2.1
    published about 1 year ago
  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 33 Last month
Rankings
Dependent packages count: 10.1%
Average: 33.4%
Dependent repos count: 56.8%
Maintainers (2)
Last synced: 7 months ago

Dependencies

.github/workflows/_build_and_publish_documentation.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • peaceiris/actions-gh-pages v3 composite
  • sphinx-doc/github-problem-matcher master composite
.github/workflows/_build_package.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
.github/workflows/_code_quality.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
.github/workflows/_merge_into_release.yml actions
  • actions/checkout v4 composite
  • devmasx/merge-branch v1.4.0 composite
.github/workflows/_test.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
.github/workflows/_test_future.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
.github/workflows/nightly_build.yml actions
.github/workflows/publish_release.yml actions
.github/workflows/pull_request_to_main.yml actions
.github/workflows/push.yml actions
.github/workflows/push_to_main.yml actions
.github/workflows/push_to_release.yml actions
pyproject.toml pypi
  • libcosimpy >=0.0.1
  • numpy >=1.24.2