Changes between Version 3 and Version 4 of WikiStart
- Timestamp:
- 08/13/24 19:49:08 (9 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v3 v4 6 6 7 7 see source:flowtimer@guix for the development branch 8 9 {{{#!json 10 { 11 "phase_list": [ 12 { 13 "title": "Huddle", 14 "duration": 10, 15 "state": "initial", 16 "time_left": 10 17 }, 18 { 19 "title": "Tasking", 20 "duration": 5, 21 "state": "initial", 22 "time_left": 5 23 }, 24 { 25 "title": "Work", 26 "duration": 45, 27 "state": "initial", 28 "time_left": 45 29 }, 30 { 31 "title": "Break", 32 "duration": 15, 33 "state": "initial", 34 "time_left": 15 35 } 36 ], 37 "repetitions": 2 38 } 39 }}} 40 41 42 {{{#!python 43 44 from Phase import Phase 45 from RecurringPhaseSequence import RecurringPhaseSequence 46 from Schedule import Schedule 47 48 p1 = Phase('Huddle', 10) 49 p2 = Phase('Tasking', 5) 50 p3 = Phase('Work', 45) 51 p4 = Phase('Break', 15) 52 53 seq1 = RecurringPhaseSequence([p1, p2, p3, p4], 2) 54 sc1 = Schedule(seq1.unrolled()) 55 sc1.phase_list 56 }}}