Beispiel #1
0
def checkpoint_now(s):
    """Save current state"""
    global CHECKPOINT
    CHECKPOINT = osmt.copy(s)
Beispiel #2
0
def retry(s):
    """Load last checkpoint"""
    return osmt.copy(CHECKPOINT)