A Midas module for commercial buildings datasets.
Project description
Midas Default Load Profiles Data Simulator
The dlpdata module, provided by the midas-dlpdata package, provides a simulator for the default load profiles provided by the BDEW set.
Version: 2.1
Installation
This package will usually installed automatically together with midas-mosaik, if you opt-in the bh extra.
It is available on pypi, so you can install it manually with
pip install midas-dlpdata
Usage
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.
Inside of midas
To use the dlp data inside of midas, add dlpdata to your modules
my_scenario:
modules:
- dlpdata
# - ...
and provide a scope and a configuration:
my_scenario:
# ...
dlp_data_params:
my_scenario:
meta_scaling: 1.5
interpolate: True
randomize_data: True
randomize_cos_phi: True
active_mapping:
15: [[G4, 262.8]]
17: [[H0, 1038.06]]
The numbers 15 and 17 stand for the bus number which depends on the used grid.
Any Mosaik Scenario
If you don't use midas, you can add the dlpdata manually to your mosaik scenario_ file.
First, the entry in the sim_config:
.. _mosaik scenario: https://mosaik.readthedocs.io/en/latest/tutorials/demo1.html
sim_config = {
"DLPSimulator": {
"python": "midas_powerseries.simulator:PowerSeriesSimulator"},
# ...
}
Next, you need to start the simulator (assuming a step_size of 900).
Since it uses a custom data model, you have to specify it here:
dlpdata_sim = world.start(
"DLPSimulator",
step_size=900,
model_import_str="midas_dlp.model:DLPModel",
use_custom_time_series=True,
start_date="2020-01-01 00:00:00+0100",
data_path="/path/to/folder/where/dataset/is/located/",
filename="bdew_default_load_profiles.csv", # this is default
)
Then the models can be started:
houshold = dlpdata_sim.CalculatedQTimeSeries(name="H0", scaling=1038.06)
trade = dlpdata_sim.CalculatedQTimeSeries(name="G4", scaling=262.8)
Finally, the models need to be connected to other entities:
world.connect(trade, other_entity, "p_mw", "q_mvar")
License
The data is taken from BDEW.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file midas_dlpdata-2.1.0.tar.gz.
File metadata
- Download URL: midas_dlpdata-2.1.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1105636d42f31ee2eac6f2e5dda62ad24de01bd8466dd7a03254039daefbebed
|
|
| MD5 |
1246751eee7b64ef8de12ed9226921b0
|
|
| BLAKE2b-256 |
7151b77965f0c107d5fa327265f0c1a0cbb69a0e2fec1c54da13efd7f436a314
|
File details
Details for the file midas_dlpdata-2.1.0-py3-none-any.whl.
File metadata
- Download URL: midas_dlpdata-2.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff8cacc6c11017c0db028a2a26a494537426963ed1b18525c7d09c2996ced861
|
|
| MD5 |
2bf028aa06654214a09bfa3c6e6afee1
|
|
| BLAKE2b-256 |
1b3b2a6cd10e3ec8a8a7977042363d6e0615f93fde68a7983ec2c7cdca8b2441
|