trumania.components.time_patterns package

Submodules

trumania.components.time_patterns.profilers module

class trumania.components.time_patterns.profilers.DefaultDailyTimerGenerator(clock, seed)[source]

Bases: trumania.core.clock.CyclicTimerGenerator

Basic CyclicTimerGenerator with a one dat period with hourly weights vaguely inspired from

https://github.com/RealImpactAnalytics/lab-home-work-detection/blob/3bacb58a53f69824102437a27218149f75d322e2/pub/chimayblue/01%20basic%20exploration.ipynb

class trumania.components.time_patterns.profilers.HighWeekDaysTimerGenerator(clock, seed)[source]

Bases: trumania.core.clock.CyclicTimerGenerator

Basic CyclicTimerGenerator with a one week period that allocates higher probabilities to week-day vs week-ends

class trumania.components.time_patterns.profilers.WorkHoursTimerGenerator(clock, seed, start_hour=9, end_hour=17)[source]

Bases: trumania.core.clock.CyclicTimerGenerator

Basic CyclicTimerGenerator with a one week period that allocates uniform probabilities to work hours.

Work hours happen during week days (Monday to Friday), and between start_hour and end_hour, both included

Module contents