A simple simulator for household profiles.
Project description
HouseholdSim
This is pseudo simulator to serve residual load profiles to mosaik.
Installation
$ pip install mosaik-householdsim
Tests
You can run the tests with:
$ git clone https://bitbucket.org/mosaik/mosaik-householdsim $ cd mosaik-householdsim $ pip install -r requirements.txt $ pip install -e . $ py.test $ tox
Documentation
This simulator consists of a a model (householdsim/model.py) and the mosaik API implemenation (householdsim/mosaik.py).
The model processes the data from a NumPy *.npz file (see householdsim/test/test_model.py for an example of its layout). Basically, the file contains a number of load profiles for a given period of time. It also contains ID lists that describe which load profile belongs to which node ID in a power grid. The first entry in an ID list relates to the first entry of the profiles list, the second entry in the ID list to the second load profile and so on. If the number of entires in the ID list is larger than the number of load profiles, we start again with the first load profile.
Internally, the model works with minute. Since mosaik is based on seconds, the mosaik API implementation converts between them.
Usually, residual load profiles have a resolution of 15 minutes. It is no problem for this simulator to step in 1 minute steps, though.
Changelog
2.0.3 – 2019-09-27
[FIX] Fixed incompatibility with new arrow version.
[FIX] Fixed time offset bug.
2.0.2 – 2014-09-22
[CHANGE] Updated to mosaik-api 2.0.
2.0.1 – 2014-06-26
[CHANGE] Adopted latest changes of the mosaik low-level API.
2.0 – 2014-03-26
Updated API implementation for mosaik2.
1.0 – 2014-01-30
Initial release.
Project details
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
File details
Details for the file mosaik-householdsim-2.0.3.tar.gz
.
File metadata
- Download URL: mosaik-householdsim-2.0.3.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b274eda1df58751ceaf674b6c784e2d8e5e46bacfe2813c6c4a537ecdd89580b |
|
MD5 | bf5a4022741928663ec0325bbb27ef50 |
|
BLAKE2b-256 | 903dc04cdf857e1c67ff86cced4555473b324f7d7776f4e8aee2964200220bb1 |
Provenance
File details
Details for the file mosaik_householdsim-2.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: mosaik_householdsim-2.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c70c66bc9d93f075842f019ef733b5a1b309d682907becf35e6975c25e766027 |
|
MD5 | ffc8a900bce78168fd17f7996f6a6990 |
|
BLAKE2b-256 | c8e21d1c1bc30c8e4c7302f3c5d063d135c647de441b9a35cfa428c31a5ce5f9 |