Atelier des rouesLaboratoire EN
Objets/Documentation

rejets33.py

Conditionnels communs et contrôles · rejets33.py

Télécharger ↓
"""Classify the first failing owner group and its first violated event plane."""
from collections import Counter
from opposes31 import study as search
import json
def study():
    counts=[Counter() for _ in range(4)];facets=Counter();owners=0
    examples={}
    def audit(region,groups,systems,allowed,ctx):
        nonlocal owners
        if groups is None:counts[region]['outside']+=1;return
        for j,rows in enumerate(groups):
            failures=[]
            for idx in sorted(rows):
                first=next((h for h in sorted(systems[idx]) if not allowed(h)),None)
                if first is None:break
                failures.append(first)

Lire dans son contexte

Commentaires

Les commentaires en français et en anglais sont réunis ici.

La discussion reste consultable. J’ouvrirai les participations dès que la protection antispam sera configurée.