A Midas module for commercial buildings datasets.
Project description
Midas Commercial Data Simulator
The comdata module, provided by the midas-comdata package, provides a simulator for a commercial building reference data set.
Version: 2.1
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 store inside of midas, add comdata to your modules
my_scenario:
modules:
- comdata
# - ...
and provide a scope and a configuration:
my_scenario:
# ...
comdata_params:
my_grid_scope:
interpolate: True
randomize_data: True
randomize_cos_phi: True
mapping:
22: [[Hospital, 0.002]] # industrial subgrid
35: [[StripMall, 0.015]]
The number 22, 35 stands for the bus number, which depends on the grid.
Any mosaik scenario
If you don't use midas, you can add the comdata manually to your mosaik scenario file.
First, the entry in the sim_config:
sim_config = {
"CommercialDataSimulator": {
"python": "midas_powerseries.simulator:PowerSeriesSimulator"
},
# ...
}
Next, you need to start the simulator (assuming a step_size of 900):
comdata_sim = world.start(
"CommercialDataSimulator",
step_size=900,
data_step_size=3600,
start_date="2020-01-01 00:00:00+0100",
data_path="/path/to/folder/where/dataset/is/located/",
filename="commercial_profiles.csv", # this is default
)
Then the models can be started:
hospital = comdata_sim.CalculatedQTimeSeries(name="Hospital", scaling=0.002)
strip_mall = comdata_sim.CalculatedQTimeSeries(name="StripMall", scaling=0.015)
Finally, the modells need to be connected to other entities:
world.connect(hospital, other_entity, "p_mw", "q_mvar")
License
The data set ist taken from the project Oben Energy Data Initiative.
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_comdata-2.1.0.tar.gz.
File metadata
- Download URL: midas_comdata-2.1.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e11d0fb516cbc21ba514ec78112081be27084f30d3453d277ee3fda3db4636fa
|
|
| MD5 |
c2bbfe069b0587944f42232aef7dc161
|
|
| BLAKE2b-256 |
b99bba9d8006594bc22bf91950927429d0e2fc1aca98fe9530d0ab9a2f303084
|
File details
Details for the file midas_comdata-2.1.0-py3-none-any.whl.
File metadata
- Download URL: midas_comdata-2.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 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 |
5c444e9fdb154fe8e9e0a4d9e7eaaffb11b9cceee222025d7a71f9a4616da0e6
|
|
| MD5 |
219919386bbceb3db670819d239b2b8c
|
|
| BLAKE2b-256 |
53f5474e7158150474272214c0f1c69b2a92fd98c259b807effcc6093213475e
|