text
stringlengths
0
1.45k
"staged_after": run.hashes_after,
}
(LOGS / "hidden_input_hashes.json").write_text(
json.dumps(hash_evidence, indent=2, sort_keys=True) + "\n",
encoding="utf-8",
)
assert source_hashes_after == source_hashes_before, "A source input changed during the hidden-density replay"
assert run.hashes_after == run.hashes_before, "A randomized staged hidden input changed during execution"
assert run.completed.returncode == 0, f"Hidden-density run failed:\n{run.completed.stderr}"
heldout_eos = run.output_paths["eos"]
heldout_summary = run.output_paths["summary"]
require_regular_file(heldout_eos, "hidden EOS output")
require_regular_file(heldout_summary, "hidden summary output")
densities = tuple(load_density_csv(hidden_density_path).tolist())
reference = independent_reference(densities)
write_reference_log("heldout", reference)
actual = load_eos_csv(heldout_eos)
> assert_rows_close(actual, reference)
verifier/test_outputs.py:702:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
verifier/test_outputs.py:376: in assert_rows_close
np.testing.assert_allclose(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<function assert_allclose.<locals>.compare at 0x7fdd5f9d93a0>, array([-0.00505743, -0.01633712, -0.02593023, -0.04636....07000177]), array([-0.00503852, -0.01624164, -0.0257821 , -0.04611615, -0.07714097,
-0.07334664, -0.06943913]))
kwds = {'equal_nan': True, 'err_msg': 'Mismatch in beta_excess_free_energy_density_A3inv', 'header': 'Not equal to tolerance rtol=1e-05, atol=1e-05', 'verbose': True}
@wraps(func)
def inner(*args, **kwds):
with self._recreate_cm():
> return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
E AssertionError:
E Not equal to tolerance rtol=1e-05, atol=1e-05
E Mismatch in beta_excess_free_energy_density_A3inv
E Mismatched elements: 7 / 7 (100%)
E Max absolute difference: 0.00056264
E Max relative difference: 0.00810259
E x: array([-0.005057, -0.016337, -0.02593 , -0.046363, -0.077636, -0.073888,
E -0.070002])
E y: array([-0.005039, -0.016242, -0.025782, -0.046116, -0.077141, -0.073347,
E -0.069439])
usr/local/lib/python3.12/contextlib.py:81: AssertionError
=============================== warnings summary ===============================
<frozen importlib._bootstrap>:488
<frozen importlib._bootstrap>:488: DeprecationWarning: Type google._upb._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.
<frozen importlib._bootstrap>:488
<frozen importlib._bootstrap>:488: DeprecationWarning: Type google._upb._message.ScalarMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED verifier/test_outputs.py::test_frozen_inputs_and_output_schema
PASSED verifier/test_outputs.py::test_runtime_hidden_schedule_rejects_public_answer_tables
FAILED verifier/test_outputs.py::test_nominal_curve_matches_independent_model_evaluation
FAILED verifier/test_outputs.py::test_thermodynamic_identities_and_physical_behavior
FAILED verifier/test_outputs.py::test_simulation_comparison_and_summary_consistency
FAILED verifier/test_outputs.py::test_reusable_program_on_hidden_densities - ...
=================== 4 failed, 2 passed, 2 warnings in 5.74s ====================
============================= test session starts ==============================
platform linux -- Python 3.12.11, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3
rootdir: /verifier
collecting ... collected 6 items
verifier/test_outputs.py::test_frozen_inputs_and_output_schema PASSED [ 16%]
verifier/test_outputs.py::test_nominal_curve_matches_independent_model_evaluation FAILED [ 33%]
verifier/test_outputs.py::test_thermodynamic_identities_and_physical_behavior FAILED [ 50%]
verifier/test_outputs.py::test_simulation_comparison_and_summary_consistency FAILED [ 66%]
verifier/test_outputs.py::test_runtime_hidden_schedule_rejects_public_answer_tables PASSED [ 83%]
verifier/test_outputs.py::test_reusable_program_on_hidden_densities FAILED [100%]
=================================== FAILURES ===================================
___________ test_nominal_curve_matches_independent_model_evaluation ____________
def test_nominal_curve_matches_independent_model_evaluation() -> None:
densities = tuple(load_density_csv(DENSITY_PATH).tolist())
reference = independent_reference(densities)
write_reference_log("nominal", reference)
> assert_rows_close(load_eos_csv(EOS_PATH), reference)
verifier/test_outputs.py:493:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
verifier/test_outputs.py:376: in assert_rows_close
np.testing.assert_allclose(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<function assert_allclose.<locals>.compare at 0x789a9b8d4400>, array([-0.00422581, -0.0076578 , -0.01128275, -0.01497...41937, -0.07556767, -0.0744014 , -0.07290309,
-0.07106371, -0.06888173, -0.06635655, -0.06348069, -0.06023689]))
kwds = {'equal_nan': True, 'err_msg': 'Mismatch in beta_excess_free_energy_density_A3inv', 'header': 'Not equal to tolerance rtol=1e-05, atol=1e-05', 'verbose': True}
@wraps(func)
def inner(*args, **kwds):
with self._recreate_cm():
> return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
E AssertionError: