Skip to main content

PyPI package Documentation Test results Test coverage Code analysis License status Analytics

DE-Sim: a Python-based object-oriented discrete-event simulator for modeling complex systems

DE-Sim is an open-source, Python-based object-oriented discrete-event simulation (DES) tool that makes it easy to use large, heterogeneous datasets and high-level data science tools such as NumPy, Scipy, pandas, and SQLAlchemy to build and simulate complex computational models. Similar to Simula, DE-Sim models are implemented by defining logical process objects which read the values of a set of variables and schedule events to modify their values at discrete instants in time.

To help users build and simulate complex, data-driven models, DE-Sim provides the following features:

  • High-level, object-oriented modeling: DE-Sim makes it easy for users to use object-oriented Python programming to build models. This makes it easy to use large, heterogeneous datasets and high-level data science packages such as NumPy, pandas, SciPy, and SQLAlchemy to build complex models.

  • Stop conditions: DE-Sim makes it easy to terminate simulations when specific criteria are reached. Researchers can specify stop conditions as functions that return true when a simulation should conclude.

  • Results checkpointing: DE-Sim makes it easy to record the results of simulations by using a configurable checkpointing module.

  • Reproducible simulations: To help researchers debug simulations, repeated executions of the same simulation with the same configuration and same random number generator seed produce the same results.

  • Space-time visualizations: DE-Sim generates space-time visualizations of simulation trajectories. These diagrams can help researchers understand and debug simulations.

Projects that use DE-Sim

DE-Sim has been used to develop WC-Sim, a multi-algorithmic simulator for whole-cell models.

Examples

  • Minimal simulation: a minimal example of a simulation

  • Random walk: a random one-dimensional walk which increments or decrements a variable with equal probability at each event

  • Parallel hold (PHOLD): model developed by Richard Fujimoto for benchmarking parallel DES simulators

  • Epidemic: an SIR model of an epidemic of an infectious disease

Tutorial

Please see sandbox.karrlab.org for interactive tutorials on creating and executing models with DE-Sim.

Template for models and simulations

`de_sim/examples/minimal_simulation.py <de_sim/examples/minimal_simulation.py>`__ contains a template for implementing and simulating a model with DE-Sim.

Installation

  1. Install dependencies

    • Python >= 3.7

    • pip >= 19

  2. Install this package using one of these methods

    • Install the latest release from PyPI pip install de_sim

    • Install a Docker image with the latest release from DockerHub docker pull karrlab/de_sim

    • Install the latest version from GitHub pip install git+https://github.com/KarrLab/de_sim.git#egg=de_sim

API documentation

Please see the API documentation.

Performance

Please see the *DE-Sim* article for information about the performance of DE-Sim.

Strengths and weaknesses compared to other DES tools

Please see the *DE-Sim* article for a comparison of DE-Sim with other DES tools.

License

The package is released under the MIT license.

Citing DE-Sim

Please use the following reference to cite DE-Sim:

Arthur P. Goldberg & Jonathan Karr. (2020). DE-Sim: an object-oriented, discrete-event simulation tool for data-intensive modeling of complex systems in Python. Journal of Open Source Software, 5(55), 2685.

Contributing to DE-Sim

We enthusiastically welcome contributions to DE-Sim! Please see the guide to contributing and the developer’s code of conduct.

Development team

This package was developed by the Karr Lab at the Icahn School of Medicine at Mount Sinai in New York, USA by the following individuals:

Acknowledgements

This work was supported by National Science Foundation award 1649014, National Institutes of Health award R35GM119771, and the Icahn Institute for Data Science and Genomic Technology.

Questions and comments

Please submit questions and issues to GitHub or contact the Karr Lab.

Release files for de-sim 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for de-sim 1.0.5
File Size Uploaded
de_sim-1.0.5.tar.gz 197.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for de-sim 1.0.5
File Interpreter ABI Platform
de_sim-1.0.5-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 251.5 kB

Release files / de_sim-1.0.5.tar.gz

Download URL de_sim-1.0.5.tar.gz
Size 197.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d1b3dc6fece096ff130cf2e06ea431f6dbc8d03f5cb655219ad20180bda46776
BLAKE2b-256 checksum
How to use checksums
303d1be80977ebf0f493908223b478b29b61eb4fede55b54a0aa0c0a437139c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release files / de_sim-1.0.5-py2.py3-none-any.whl

Download URL de_sim-1.0.5-py2.py3-none-any.whl
Size 53.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
72f7fd5d5b3cf06979e6d2a44ce30fd829f6ce3a27bb34968b9a2c2c41b5d4a0
BLAKE2b-256 checksum
How to use checksums
668ed9679a42fffe01e36f63ac363f8f57f0e9f521116ed91a8c5b907ca83cb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.3

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page