Midas Store
Description
This package contains a midas module providing a database simulator. This works like most other collectors for mosaik, i.e., it accepts any number of inputs and stores them in a database file.
Although this package is intended to be used with midas, you can use in any mosaik simulation scenario.
Version: 2.1
Installation
This package will usually installed automatically together with midas-mosaik if you opt-in any of the extras, e.g., base or bh.
It is available on pypi, so you can install it manually with
pip install midas-store
Usage
The complete documentation is available at https://midas-mosaik.gitlab.io/midas.
Inside of midas
To use the store inside of midas, just add store to your modules
my_scenario:
modules:
- store
- ...
and configure it with (filename is required, everything else is optional and can be left out if the default values, shown below, are used):
store_params:
filename: my_results.csv
step_size: 900
unique_filename: False
keep_old_files: False
All simulators that have something to store will then automatically connect to the store simulator.
Any mosaik scenario
If you don't use midas, you can add the store manually to your mosaik scenario file.
First, the entry in the sim_config:
sim_config = {
"MidasCSV": {"python": "midas_store.simulator:MidasCSVStore"},
# ...
}
Next, you need to start the simulator (assuming a step_size of 900):
store_sim = world.start("MidasCSVStore", step_size=900)
Finally, the model needs to be started:
store = store_sim.Database(filename="my_results.csv", keep_old_files=False, unique_filename=False)
Afterwards, you can define world.connect(other_entity, store, 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-store 2.1.0
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_store-2.1.0.tar.gz | 13.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| midas_store-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.6 kB
Release files / midas_store-2.1.0.tar.gz
| Download URL | midas_store-2.1.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0aab37f5d2998f421766163edff0f75b6c2e8b2e88281c7bcf23abc7d072d291
|
|
BLAKE2b-256 checksum How to use checksums |
cb35bd2a9eeba6159ba20e0dbd9c35c44760c6227632b1b20391ec37b6a3ffef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / midas_store-2.1.0-py3-none-any.whl
| Download URL | midas_store-2.1.0-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97cfaf115894bc4bd8658cc5cc16f798c2b197ed2ee8c5d7c2b31f43316aac68
|
|
BLAKE2b-256 checksum How to use checksums |
e8a9e2fb5e5cb26911b65a03f3682f797e1729760dcf8e16444abafc3d51701f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for midas-store 2.1.0
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.