| Version 14 (modified by , 14 months ago) ( diff ) |
|---|
Welcome to Playground project
Various code samples
Sample project flowtimer
see source:flowtimer@master for the master branch
see source:flowtimer@guix for the development branch
import json
from flowtimer.Phase import Phase
from flowtimer.RecurringPhaseSequence import RecurringPhaseSequence
from flowtimer.Schedule import Schedule
p1 = Phase('Huddle', 600)
p2 = Phase('Tasking', 600)
p3 = Phase('Work', 2700)
p4 = Phase('Sync', 600)
p5 = Phase('Break', 900)
seq1 = RecurringPhaseSequence(title = 'AM', phases = [p2, p3, p4, p5], repetitions=3)
schedule = Schedule(title = 'Morning', blocks= [p1, seq1])
json_string = schedule.to_json()
schedule2 = Schedule.from_json(json_string)
schedule2.tick(60)
schedule2.total_ticks_left() # 14940
Note:
See TracWiki
for help on using the wiki.
![(please configure the [header_logo] section in trac.ini)](/playground/chrome/site/playground.png)