"""Second implementation of the two key controls; does not import observe.py.""" from contextlib import closing from datetime import datetime, timezone import hashlib import json from pathlib import Path import tempfile import h5py import numpy as np def check(condition, message): if not condition: raise RuntimeError(message) with tempfile.TemporaryDirectory(prefix="hesela-so-crosscheck-") as directory: root = Path(directory) a = np.array([0., .004, .006, .009, .011, .019, 1.234], dtype=" .005, "float counterexample absent") path = root / "integer.h5" a_int = np.arange(1000, 1016, dtype="