"""HHT reference identity, time, projection and common-tolerance regressions.""" import csv import json import math from pathlib import Path import shutil import subprocess import sys import pytest h5py = pytest.importorskip("h5py", reason="Run with uv --with h5py for HHT comparison tests.") np = pytest.importorskip("numpy") from scripts.verification import compare_hht_dynamic as comparator @pytest.fixture(scope="module") def artifacts(tmp_path_factory): directory = tmp_path_factory.mktemp("hht-comparison") input_path = comparator.REFERENCE_DIRECTORY / f"{comparator.CASE}.inp" reference_path = comparator.REFERENCE_DIRECTORY / f"{comparator.CASE} displacements.csv" nodes, content_identity = comparator.input_inventory(input_path) reference = comparator.read_reference(reference_path) result_path = directory / "matching_results.h5" string_type = h5py.string_dtype("utf-8") node_type = np.dtype([("internal_node_id", "