demandlib package

Submodules

demandlib.bdew module

Load profiles

SPDX-FileCopyrightText: Patrik Schönfeldt

SPDX-License-Identifier: MIT

demandlib.particular_profiles module

Implementation of the bdew standard load profiles for electric power.

class demandlib.particular_profiles.IndustrialLoadProfile(dt_index, holidays=None)[source]

Bases: object

Generate an industrial heat or electric load profile.

simple_profile(annual_demand, **kwargs)[source]

Create industrial load profile

Parameters:

annual_demand (float) – Total demand.

Other Parameters:
 
  • am (datetime.time) – beginning of workday
  • pm (datetime.time) – end of workday
  • week (list) – list of weekdays
  • weekend (list) – list of weekend days
  • profile_factors (dictionary) – dictionary with scaling factors for night and day of weekdays and weekend days

demandlib.tools module

Tools needed by the main classes

demandlib.tools.add_weekdays2df(time_df, holidays=None, holiday_is_sunday=False)[source]
Giving back a DataFrame containing weekdays and optionally holidays for
the given year.
Parameters:
  • time_df (pandas DataFrame) – DataFrame to which the weekdays should be added
  • Parameters (Optional) –
  • -------------------
  • holidays (array with information for every hour of the year, if holiday or) – not (0: holiday, 1: no holiday)
  • holiday_is_sunday (boolean) – If set to True, all holidays (0) will be set to sundays (7).
Returns:

pandas.DataFrame

Return type:

DataFrame with weekdays

Notes

Using Pandas > 0.16

Module contents