Atelier des rouesLab FR
Objects/Documentation

bande33.py

Shared conditionals and checks · bande33.py

Download ↓
"""Exact clause arrangement on all square edges and one complete vertical slab."""
from fractions import Fraction as F
from itertools import combinations
from clauses32 import family
from packing32 import study as packing
from contacts27 import TRIPLE
from verifier26 import permitted
import json

def study():
    old,_=family();pool=dict(old);e=F(3,16)
    groups=[{h for h in permitted(TRIPLE,e,j) if any(h[:3]) or h[3]<0} for j in range(4)]
    catalogue=sorted(set.union(*groups));entries=[[(i,p) for i,p in enumerate(catalogue) if p in g] for g in groups]
    def sample(j,axis,fixed):
        lines=[];cuts={F(0),F(1)}
        for i,(a,b,c,d) in entries[j]:

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.