Skip to main content

A simple simulator for household profiles.

Project description

HouseholdSim

This is pseudo simulator to serve residual load profiles to mosaik.

Status

Pipeline status Coverage Report Libraries status License badge PyPI version Python Versions

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.

Authors

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

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file mosaik.HouseholdSim_SemVer-2.0.4rc20211105010441-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mosaik.HouseholdSim_SemVer-2.0.4rc20211105010441-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 969866b60871920afdc697c0ebfd90d9fe709b0364d339806884cc7a46b8aeb5
MD5 99c7e1a3e7a6f7d599d24d249a1ad7db
BLAKE2b-256 8249d515b1f6f21ef46e2c76fec6ccc3e6505ec94b3c850e5f4da47cfee95119

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