Skip to main content

Package to create out of a single load profile a profile for a whole district using the diversity factor

Project description

Status Version Python Version Wheel PyPI - License

Last Commit Last Release Latest Release OpenIssues

Documentation Status pipeline status coverage report Pylint Code style: black Imports: isort Checked with mypy security: bandit made-with-python

SIJ | Solar-Institut Jülich

Time Series Scaling Module (TSSM)

TSSM is a python package for the up-scaling of time series or load such as electricity, heating, etc.

Warning

This package is under heavy development!

Getting started

Install TSSM

Install tssm directly from PyPi as follows:

pip install tssm

Further installation instructions can be found in the documentation under 'Getting started'.

Usage

example usages can be found in the examples' folder.

Basic workflow

A small example how tssm can be used is described as follows:

# import module and Daily period variable
from tssm import TimeSeriesScalingModule

# initialize class with a number of buildings of 202 with a simultaneity factor of 0.786
scaling = TimeSeriesScalingModule(number_of_buildings=202, simultaneity_factor=0.786)
# read profile from data.csv file and use the Electricity and Date column
scaling.data.read_profile_from_csv_with_date(path="./data.csv", column_of_load="Electricity", column_of_date="Date")
# calculate linear scaled values with a daily simultaneity factor and average value
daily_scaled_values = scaling.calculate_using_average_values(period="DAILY")

Examples

A first example shows the linear approach. It scales the time series between the scaled time series and an average.

A second example shows the scaling approach. It scales the time series between the scaled time series and a scaling time series.

A third example shows the normal distribution approach. It scales the time series by applying a normal distribution to every time step.

A fourth example shows the normal distribution with a reference profile approach. It scales the time series by applying a normal distribution to the difference of the original and a reference profile for every time step.

A fifth example shows the different ways to import the data.

A sixth example shows the speed of the different approaches.

A seventh example shows an example for an BDEW electrical profile generation and an eighth example example for a heat profile generation.

License

The module is licensed under BSD 3-Clause License.

Further, License information can be found here.

Reference

Acknowledgements

Content

The documentation of the tssm code can be found here.

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

tssm-0.0.5.tar.gz (118.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tssm-0.0.5-py3-none-any.whl (116.3 kB view details)

Uploaded Python 3

File details

Details for the file tssm-0.0.5.tar.gz.

File metadata

  • Download URL: tssm-0.0.5.tar.gz
  • Upload date:
  • Size: 118.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for tssm-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c3e559665a513926d0ec387469568e1b1ea81903eb615cac9539d77135db61e4
MD5 a2e5debafb62260300d0ceb2e28fb7ae
BLAKE2b-256 736dd05d1a3576e91dfabc8db43e72610d6fbdeff00336ab9bc4d01f43b6b41c

See more details on using hashes here.

File details

Details for the file tssm-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: tssm-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 116.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for tssm-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6debb59b338f7ea6501ec8f52faf109961c74e3012411b7bdd6495ec8b79f95d
MD5 dc1b458eb3b0c6518fe0b4e6f9822262
BLAKE2b-256 02905f57f7d825e17e9df4a169c400169e0f524fb9e189726f154a8d8b85d240

See more details on using hashes here.

Supported by

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