Open DeadDude-glitch opened 4 months ago
This is a yaml data structure of the timeline branching mechanism
superscope:
- session 1:
- execution 1
- execution 2
- session 2:
- execution 1
- execution 2
- session 3:
- execution 1
- execution 2
The function should be given a timeline.activity.scope it extracts a timeline.context for example: given a activity.scope it returns a list of timeline.context.session
def extract_sessions(scope:activity.scope) -> list:
"""timline branching algorithm is implemented here"""
def extract_execution(scope:activity.session) -> list:
"""timline branching algorithm is implemented here"""
define super scope then recursively create scopes inside it to form a tree data structure