Changes between Version 3 and Version 4 of WikiStart


Ignore:
Timestamp:
08/13/24 19:49:08 (9 months ago)
Author:
Enrico Schwass
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v3 v4  
    66
    77see 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
     44from Phase import Phase
     45from RecurringPhaseSequence import RecurringPhaseSequence
     46from Schedule import Schedule
     47
     48p1 = Phase('Huddle', 10)
     49p2 = Phase('Tasking', 5)
     50p3 = Phase('Work', 45)
     51p4 = Phase('Break', 15)
     52
     53seq1 = RecurringPhaseSequence([p1, p2, p3, p4], 2)
     54sc1 = Schedule(seq1.unrolled())
     55sc1.phase_list
     56}}}