"""Synthetic mixed-VTU ingestion and complete 32-seed preparation acceptance.""" import base64 import json from pathlib import Path import tempfile import unittest from unittest.mock import patch from xml.etree import ElementTree as ET from zipfile import ZipFile import zlib import numpy as np from test_o1_partition import box from o1_partition import sha, InputViolation from o1_prepare import prepare, source_geometry, load_inputs from run_o1_prepare import cost_check from gre24_features import COLUMNS def save(path, value): Path(path).write_text(json.dumps(value)) def array(parent, name, values, dtype, components=1): a = np.asarray(values) data = a.tobytes(); compressed = zlib.compress(data) header = np.array([1,len(data),len(data),len(compressed)],dtype='