MIDAS Simbench Data Simulator
The sbdata module, provided by the midas-sbdata package, provides a simulator for simbench data sets even outside of simbench networks.
Version: 2.1
Installation
This package will be installed automatically with midas-mosaik if you opt-in the full extra.
It is available on pypi, so you can install it manually with
pip install midas-sbdata
Usage
The complete documentation is available at https://midas-mosaik.gitlab.io/midas.
Inside of MIDAS
To use the simulator inside of midas, add sbdata to your modules:
my_scenario:
modules:
- sbdata
- ...
and configure it with:
my_scenario:
# ...
sndata_params:
my_grid_scope:
is_load: false
is_sgen: false
combined_mapping:
1: [[[load_000_p_mw, load_000_q_mvar], 1.0]]
3: [[sgen_000_p_mw, 1.0]]
Any mosaik scenario
If you don't use midas, you can add the sbdata manually to your mosaik scenario file.
First, the entry in the sim_config:
sim_config: {
"SimbenchData": {
"python": "midas_powerseries.simulator:PowerSeriesSimulator",
}
}
Next, you need to start the simulator (assuming a step_size of 900):
sbdata_sim = world.start(
"SimbenchData",
step_size=900,
is_load=False,
is_sgen=False,
start_date="2020-01-01 00:00:00+0100",
data_path="/path/to/folder/where/dataset/is/located",
filename="1-LV-rural3--0-sw.csv", # this is default,
)
Then the models can be started:
load1 = sbdata_sim.CombindTimeSeries(name=["load_000_p_mw", "load_000_q_mvar"], scaling=1.0)
sgen1 = sbdata_sim.CalculatedQTimeSeries(name="sgen_000_p_mw", scaling=1.0)
Finally, the models need to be connected to other entities:
world.connect(load1, other_entity, "p_mw", "q_mvar")
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-sbdata 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_sbdata-2.1.0.tar.gz | 6.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| midas_sbdata-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / midas_sbdata-2.1.0.tar.gz
| Download URL | midas_sbdata-2.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9160e10359da79ed38889d5c8be9ae69578ff67ffacf3efc708cf066503da53
|
|
BLAKE2b-256 checksum How to use checksums |
ed61f2f7ec77a9e1959637437a08a24998dd89eefcca3f8305363b2d1dccafbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / midas_sbdata-2.1.0-py3-none-any.whl
| Download URL | midas_sbdata-2.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38d8f7af2739332afee8926ace58a97aa137a291cf582a66161b0a4b2f89b280
|
|
BLAKE2b-256 checksum How to use checksums |
615406ee1e843228f2db75a492346b78eb16d9d60aaea1005d8d38f84a218eb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for midas-sbdata 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.