Atelier des rouesLab FR
Objects/Documentation

experience.py

Runnable starter-kit experiment with an enumeration check.

Download ↓
"""Compare reversible block formats, with the same eight-byte header for all."""
from fractions import Fraction
from itertools import product
from math import comb, factorial, prod
from pathlib import Path
from random import Random
from struct import Struct
import json
import sys
import zlib

sys.path.append(str(Path(__file__).resolve().parents[2] / "diffusion" / "XI"))
from codec_xi import encode, decode

HEADER = Struct(">BBHI")  # method, K-1, n, payload bytes

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.