Midas Time Simulator
Description
This package contains a midas timesim module, which contains a simulator that tracks time and is able to manipulate it within the simulation.
The intended use-case for the time simulator is to be used inside of midas. However, it can be used in any mosaik simulation scenario.
Version: 2.1
Installation
This package will installed automatically together with midas-mosaik if you opt-in for the full extra.
It is available on pypi, so you can install it manually with
pip install midas-timesim
Usage
The complete documentation is available at https://midas-mosaik.gitlab.io/midas.
Inside of midas
To use the time simulator inside of midas, simply add timesim to your modules:
my_scenario:
modules:
- timesim
# - ...
This is sufficient for the timesim to run. However, additional configuration is possible with:
my_scenario:
# ...
timesim_params:
start_date: 2020-01-01 01:00:00+0100
All of the core simulators that have support time inputs will then automatically connect to the timesim simulator. The scope timesim will be created automatically but no other scopes are supported.
Any Mosaik Scenario
If you don't use midas, you can add the timesim manually to your mosaik scenario file.
First, the entry in the sim_config:
sim_config = {
"TimeSimulator": {"python": "midas_timesim.simulator:TimeSimulator"},
# ...
}
Next, you need to start the simulator (assuming a step_size of 900):
timesim_sim = world.start("TimeSimulator", step_size=900)
Finally, the model needs to be started:
timesim = timesim_sim.Timegenerator()
Afterwards, you can define world.connect(timesim, other_entity, attrs) as you like.
License
This software is released under the GNU Lesser General Public License (LGPL). See the license file for more information about the details.
Metadata
Release files for midas-timesim 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| midas_timesim-2.1.1.tar.gz | 8.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| midas_timesim-2.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / midas_timesim-2.1.1.tar.gz
| Download URL | midas_timesim-2.1.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2c8b00ed76e8b70eb285b17674cd8531144bc5c9e3c63c379c003f0eda6104e
|
|
BLAKE2b-256 checksum How to use checksums |
69f7c89d3a47624b2854fef4611cbb9eb8a06146fa1768066347bcc5381f4804
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.5
|
Release files / midas_timesim-2.1.1-py3-none-any.whl
| Download URL | midas_timesim-2.1.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd6369dd9ecf7c528c5e56162df57f259a6b425fdb48749eac1c24a456b49348
|
|
BLAKE2b-256 checksum How to use checksums |
0530b63857ca89bf39e0354a642f5b20982fa2ffc314b6456a6e8093cefb866d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.5
|
Security for midas-timesim 2.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.