Skip to main content

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://gitlab.com/mosaik/mosaik-householdsim
$ cd mosaik-householdsim
$ pip install -r requirements.txt
$ pip install -e .
$ pytest

Documentation

This simulator consists of a model (householdsim/model.py) and the mosaik API implementation (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 entries 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 allows to set the time resolution in the scenario (seconds as default), 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.1.0 - 2021-05-21

  • [CHANGE] Updated to mosaik-api 3.0.

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.

Authors

The household simulator was created by Stefan Scherfke and Ontje Lünsdorf.

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

mosaik-householdsim-2.1.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

mosaik_householdsim-2.1.0-py2.py3-none-any.whl (17.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mosaik-householdsim-2.1.0.tar.gz.

File metadata

  • Download URL: mosaik-householdsim-2.1.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for mosaik-householdsim-2.1.0.tar.gz
Algorithm Hash digest
SHA256 f8dce2ff00daad9bef099844df372fe126016469a7e0e1c3bb02257a8794b5a8
MD5 19d7fe50dec18ae0aa5c78aab6f13b4d
BLAKE2b-256 d74facab042d65e960ff324497a3e03afffb93e958a5432610dc5bb5a84e8670

See more details on using hashes here.

File details

Details for the file mosaik_householdsim-2.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: mosaik_householdsim-2.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for mosaik_householdsim-2.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fb939a59182f7798998dd418e59dae396d66dd841bb9d85c2416527f88c1c09a
MD5 e89a838df9606f6fa0eb3a1f958f3635
BLAKE2b-256 6b634ab9a048ecd62d04ef224b7520e29908485d83f347b7970c2a865cc2b734

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page