wiki:WikiStart

Version 5 (modified by Enrico Schwass, 17 months ago) ( diff )

--

Welcome to Playground project

Sample project flowtimer

see source:flowtimer@master for the master branch

see source:flowtimer@guix for the development branch

{
  "phase_list": [
    {
      "title": "Huddle",
      "duration": 10
    },
    {
      "title": "Tasking",
      "duration": 5
    },
    {
      "title": "Work",
      "duration": 45
    },
    {
      "title": "Break",
      "duration": 15
    }
  ],
  "repetitions": 3
}
from Phase import Phase
from RecurringPhaseSequence import RecurringPhaseSequence
from Schedule import Schedule

p1 = Phase('Huddle', 10)
p2 = Phase('Tasking', 5)
p3 = Phase('Work', 45)
p4 = Phase('Break', 15)

seq1 = RecurringPhaseSequence(phase_list = [p1, p2, p3, p4], repetitions=3)
unrolled = [[deepcopy(seq) for seq in [each for each in seq1.repetitions * seq1.phase_list]]]
schedule = Schedule(unrolled)
Note: See TracWiki for help on using the wiki.