text stringlengths 0 4.86k |
|---|
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /verifier |
collecting ... collected 14 items |
../verifier/test_outputs.py::test_source_is_general_and_does_not_contain_public_signatures PASSED [ 7%] |
../verifier/test_outputs.py::test_hidden_execution_masks_sensitive_roots_fds_secrets_and_shared_tmp PASSED [ 14%] |
../verifier/test_outputs.py::test_primary_provenance_and_frozen_hashes PASSED [ 21%] |
../verifier/test_outputs.py::test_publication_is_complete_hash_bound_and_exact PASSED [ 28%] |
../verifier/test_outputs.py::test_public_canonicalization_and_collision_catalog FAILED [ 35%] |
../verifier/test_outputs.py::test_public_merger_tree_is_a_closed_central_spine FAILED [ 42%] |
../verifier/test_outputs.py::test_public_growth_budget_closes_every_interval FAILED [ 50%] |
../verifier/test_outputs.py::test_public_runaway_growth_ladder_is_closed_and_spine_coupled FAILED [ 57%] |
../verifier/test_outputs.py::test_public_remnant_scenarios_match_independent_analytic_solution FAILED [ 64%] |
../verifier/test_outputs.py::test_report_contains_auditable_physical_interpretation FAILED [ 71%] |
../verifier/test_outputs.py::test_reusable_cli_generalizes_to_private_randomized_histories[1] FAILED [ 78%] |
../verifier/test_outputs.py::test_reusable_cli_generalizes_to_private_randomized_histories[2] FAILED [ 85%] |
../verifier/test_outputs.py::test_reusable_cli_generalizes_to_private_randomized_histories[3] FAILED [ 92%] |
../verifier/test_outputs.py::test_malformed_hash_fails_without_partial_publication PASSED [100%] |
=================================== FAILURES =================================== |
______________ test_public_canonicalization_and_collision_catalog ______________ |
def test_public_canonicalization_and_collision_catalog() -> None: |
instance = read_json(PUBLIC_INSTANCE) |
history, counts = canonical_history(PUBLIC_HISTORY) |
mask, center, scale, threshold = expected_decomposition(history, instance) |
rows = read_csv(OUTPUT / "collision_events.csv", EVENT_COLUMNS) |
indices = np.flatnonzero(mask) + 1 |
assert len(rows) == len(indices) >= 100 |
for number, (row, index) in enumerate(zip(rows, indices, strict=True), start=1): |
jump = float(history[index, 1] - history[index - 1, 1]) |
assert row["event_id"] == f"event_{number:04d}" |
assert math.isclose(float(row["time_myr"]), float(history[index, 0]), abs_tol=1e-12) |
assert math.isclose(float(row["raw_jump_msun"]), jump, rel_tol=1e-12, abs_tol=1e-9) |
assert math.isclose(float(row["smooth_increment_msun"]), center, abs_tol=1e-12) |
assert math.isclose(float(row["companion_mass_msun"]), jump - center, rel_tol=1e-12, abs_tol=1e-9) |
assert math.isclose(float(row["robust_score"]), (jump - center) / scale, rel_tol=1e-10) |
diagnostics = read_json(OUTPUT / "diagnostics.json") |
> assert diagnostics["input"]["raw_rows"] == counts["raw_rows"] |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
E KeyError: 'raw_rows' |
/verifier/test_outputs.py:698: KeyError |
______________ test_public_merger_tree_is_a_closed_central_spine _______________ |
def test_public_merger_tree_is_a_closed_central_spine() -> None: |
events = read_csv(OUTPUT / "collision_events.csv", EVENT_COLUMNS) |
tree = read_json(OUTPUT / "merger_tree.json") |
count = len(events) |
assert tree["schema_version"] == "1.0" and tree["tree_type"] == "central_spine" |
assert tree["event_count"] == tree["maximum_depth"] == count |
assert tree["node_count"] == len(tree["nodes"]) == 2 * count + 1 |
assert tree["edge_count"] == len(tree["edges"]) == 2 * count |
> assert tree["root_node_id"] == f"central_{count:04d}" |
E AssertionError: assert 'central_0000' == 'central_0187' |
E |
E - central_0187 |
E ? ^^^ |
E + central_0000 |
E ? ^^^ |
/verifier/test_outputs.py:711: AssertionError |
_______________ test_public_growth_budget_closes_every_interval ________________ |
def test_public_growth_budget_closes_every_interval() -> None: |
history, _ = canonical_history(PUBLIC_HISTORY) |
rows = read_csv(OUTPUT / "growth_budget.csv", GROWTH_COLUMNS) |
assert [int(row["bin_index"]) for row in rows] == list(range(len(rows))) |
smooth = sum(float(row["smooth_delta_msun"]) for row in rows) |
collision = sum(float(row["collision_delta_msun"]) for row in rows) |
total = sum(float(row["total_delta_msun"]) for row in rows) |
assert math.isclose(total, float(history[-1, 1] - history[0, 1]), abs_tol=1e-7) |
assert math.isclose(smooth + collision, total, abs_tol=1e-7) |
diagnostics = read_json(OUTPUT / "diagnostics.json") |
> assert abs(diagnostics["growth_budget"]["growth_closure_residual_msun"]) < 1e-7 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
E KeyError: 'growth_closure_residual_msun' |
/verifier/test_outputs.py:728: KeyError |
________ test_public_runaway_growth_ladder_is_closed_and_spine_coupled _________ |
def test_public_runaway_growth_ladder_is_closed_and_spine_coupled() -> None: |
instance = read_json(PUBLIC_INSTANCE) |
history, _ = canonical_history(PUBLIC_HISTORY) |
mask, center, _, _ = expected_decomposition(history, instance) |
expected_rows, total_collision_mass = expected_runaway(history, mask, center) |
rows = read_csv(OUTPUT / "runaway_growth.csv", RUNAWAY_COLUMNS) |
events = read_csv(OUTPUT / "collision_events.csv", EVENT_COLUMNS) |
assert len(rows) == len(expected_rows) == len(events) == int(np.sum(mask)) >= 100 |
previous_cumulative = -math.inf |
for row, expected in zip(rows, expected_rows, strict=True): |
assert row["event_id"] == expected["event_id"] |
assert math.isclose(float(row["time_myr"]), float(expected["time_myr"]), abs_tol=1e-12) |
assert math.isclose(float(row["interevent_time_myr"]), float(expected["interevent_time_myr"]), rel_tol=1e-10, abs_tol=1e-12) |
assert math.isclose(float(row["central_mass_pre_msun"]), float(expected["central_mass_pre_msun"]), rel_tol=1e-12, abs_tol=1e-9) |
assert math.isclose(float(row["companion_mass_msun"]), float(expected["companion_mass_msun"]), rel_tol=1e-12, abs_tol=1e-9) |
assert math.isclose(float(row["mass_ratio"]), float(expected["mass_ratio"]), rel_tol=1e-10) |
assert math.isclose(float(row["cumulative_collision_mass_msun"]), float(expected["cumulative_collision_mass_msun"]), rel_tol=1e-10, abs_tol=1e-9) |
> assert math.isclose(float(row["collision_mass_fraction"]), float(expected["collision_mass_fraction"]), rel_tol=1e-10) |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 90