Skip to main content

The OpenTNSim package aims to facilitate the analysis of network performance for different network configurations, fleet compositions and traffic rules.

Project description

Documentation License: MIT DOI

TUDelft-CITG Coverage

OpenTNSim

Open source Transport Network Simulation - Analysis of traffic behaviour on networks for different traffic scenarios and network configurations.

Documentation can be found: here

Book

You can find the opentnsim book, based on the examples in the notebooks folder on the opentnsim-book website.

Installation

To install OpenTNSim, run this command in your terminal:

pip install opentnsim

To also install the extra dependencies used for testing you can use:

pip install opentnsim[testing]

To install in development mode, you can use (from the source directory)

pip install -e .

This is the preferred method to install OpenTNSim, as it will always install the most recent stable release.

If you don not have pip installed, this Python installation guide can guide you through the process.

You can read the documentation for other installation methods.

Testing

You can run the unit tests

pytest

Or you can run the notebook tests:

pytest --nbmake ./notebooks --nbmake-kernel=python3 --ignore ./notebooks/cleanup ./notebooks/students

Or you can run a specific test like this:

pytest -k test_single_engine

`

Examples

The benefit of OpenTNSim is the generic set-up. A number of examples are presented in a seperate Jupyter Notebook repository. Information on how to use the notebooks is presented in that repository as well.

Book

Based on the examples and docs a book can be generated using the commands make book and cleaned up using make clean-book. These commands are unix only.

Code quality

Code quality is checked using sonarcloud. You can see results on the sonarcloud website. For now we have disabled coverage and duplication checks. These can be enabled when we include coverage measurements and reduce duplication by optimizing the tests.

OpenCLSim

OpenTNSim makes use of the OpenCLSim code. Both packages are maintained by the same team of developers. There are some differences between packages (e.g. in logging approaches), but you can use them together. We are working towards further integrating these two software packages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opentnsim-1.3.7.tar.gz (138.8 kB view details)

Uploaded Source

Built Distribution

opentnsim-1.3.7-py2.py3-none-any.whl (144.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file opentnsim-1.3.7.tar.gz.

File metadata

  • Download URL: opentnsim-1.3.7.tar.gz
  • Upload date:
  • Size: 138.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for opentnsim-1.3.7.tar.gz
Algorithm Hash digest
SHA256 2fbc35cd3e48fa4481a47aecbed0c776650d661846a7d62576c13adb6bb6971b
MD5 be88aebfe37e9590cb7c37cf38d2e339
BLAKE2b-256 937eb86bc42eeaf2de53956e1c8f4c686a6600b8571291c364c9d7df31632774

See more details on using hashes here.

File details

Details for the file opentnsim-1.3.7-py2.py3-none-any.whl.

File metadata

  • Download URL: opentnsim-1.3.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 144.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for opentnsim-1.3.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a5e46fce42cff4bc98e63c867d7c990436b3f0f1b0943f59d79db61b9442e64a
MD5 dc8cac0a56ebc4f9b684d726c8aafb06
BLAKE2b-256 5b573a18aafb8e316f475f15f112d704cc391db7f2d069b21c5752d83fbf961a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page