Atelier des rouesLab FR
Objects/Documentation

lot24.py

Timing jumps in batches · lot24.py

Download ↓
"""Paired calls using a common warmed rank pool."""
import json, platform
from pathlib import Path
from statistics import median
from time import perf_counter_ns
from math import factorial
from sauts18 import unrank_fast, unrank, flip_length

def study(starts=None,distances=(21,22,23),batches=(1,8,32)):
    if starts is None:starts=json.loads(Path(__file__).with_name('regle21.json').read_bytes())['starts']
    period=factorial(9); rows=[]
    for distance in distances:
        def walk(item):
            s,seq,target=item;v=list(seq)
            for t in range(s,s+distance):
                k=flip_length(9,t%period);v[-k:]=reversed(v[-k:])

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.