A simple simulator for household profiles.
Project description
HouseholdSim
This is pseudo simulator to serve residual load profiles to mosaik.
Status
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 . $ pytest $ 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
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 Distributions
Built Distribution
File details
Details for the file mosaik.HouseholdSim_SemVer-2.0.4rc20220402000441-py2.py3-none-any.whl
.
File metadata
- Download URL: mosaik.HouseholdSim_SemVer-2.0.4rc20220402000441-py2.py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.1 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4876b74be1260a0663293c14f68732e5a11557668da23c8e440fcc7dbb0c6a8 |
|
MD5 | 7f93e6de873cdc9316a2afc00b50f4a1 |
|
BLAKE2b-256 | 77d5032c4d2de16d9f6fa200540ac8a96c94fcdb56d49f320e629b47d1a67293 |