Atelier des rouesLab FR
Objects/Documentation

rejets33.py

Shared conditionals and checks · rejets33.py

Download ↓
"""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)

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.