"""Small fixture writer and JSON reporting, shared only by the executions under test.""" import json import math import os import struct import sys from pathlib import Path import numpy as np def record(payload): result = bytearray() while len(payload) > 128: result.extend(bytes([129]) + payload[:128] + bytes([129])) payload = payload[128:] return bytes(result) + bytes([len(payload)]) + payload + bytes([len(payload)]) def library_path(folder): """5x5 positive linear yield on the integer angular coordinates -2..2.""" rows = [[10.0 + x + 2*y for x in range(-2, 3)] for y in range(-2, 3)] header = struct.pack('