Skip to main content

The missing implementation of mosaik's SimConfig dictionary.

Project description

mosaik SimConfig

The missing implementation of mosaik's SimConfig dictionary.

Status

  • pipeline status
  • coverage report
  • CII Best Practices

Ensuring PIP

python -m ensurepip

Setting up the Virtual Environment

python -m venv venv

Activating the Virtual Environment

Under BASH:

source venv/bin/activate

Under Windows:

venv\Scripts\activate

Installing Requirements

 python -m pip install --upgrade -r requirements.d/venv.txt

Running the Tests

Under Linux:

venv/bin/python -m tox

Under Windows:

venv\Scripts\python -m tox

Updating the Virtual Environment Requirements

Under Linux:

venv/bin/python -m pip_review --auto

Under Windows:

venv\Scripts\python -m pip_review --auto

Freezing the Virtual Environment Requirements

Under Linux

 venv/bin/python -m pip freeze --all --exclude-editable > requirements.d/venv.txt
 # And remove line beginning with package name

Under Windows

 venv\Scripts\python -m pip freeze --all --exclude-editable > requirements.d/venv.txt
# And remove line beginning with package name

Updating the Test Environment Requirements

Under Linux:

.tox/py36/bin/python -m pip_review --auto

Under Windows:

venv\Scripts\python -m pip_review --auto

Freezing the Test Environment Requirements

Under Linux

.tox/py36/bin/python -m pip freeze --all --exclude-editable > requirements.d/base.txt
# And remove line beginning with package name

Under Windows

.tox\py36\Scripts\python -m pip freeze --all --exclude-editable > requirements.d/base.txt
# And remove line beginning with package name

Using the Package

from mosaik_simconfig.simconfig.sim_config import SimConfig
from tests.mock.simulator import MockSimulator

sim_config = SimConfig()
sim_config.add_in_process(simulator=MockSimulator)

mosaik.World(sim_config=sim_config).run(until=1)

For more usage examples, see the tests.

Changelog

0.1.0 - 2019-03-25

  • [NEW] Initial release on GitLab.com

Authors

Bengt Lüers

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mosaik.SimConfig-0.1.0rc20190717010501-py2.py3-none-any.whl (14.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mosaik.SimConfig-0.1.0rc20190717010501-py2.py3-none-any.whl.

File metadata

  • Download URL: mosaik.SimConfig-0.1.0rc20190717010501-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for mosaik.SimConfig-0.1.0rc20190717010501-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 97916c47d87e413587d23841f2d52909eba52fadb11fcb77ab7f57a1d71d973f
MD5 e28da6b25112f3b75686ef4023748d3d
BLAKE2b-256 3f8cb222856de83f3026c71cc7cbc6b589f0807f443a3ff9a7dcf9b5dbb287c0

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