text stringlengths 0 4.86k |
|---|
../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 |
E AssertionError: assert 185 == 187 |
E + where 185 = len([{'companion_mass_msun': '15.43193152957', 'event_id': 'event_0001', 'post_mass_msun': '19.0295874814', 'pre_mass_msun': '3.59765595183', ...}, {'companion_mass_msun': '18.2544032014', 'event_id': 'event_0002', 'post_mass_msun': '38.5847513503', 'pre_mass_msun': '20.3303481489', ...}, {'comp... |
E + and 187 = len(array([ 904, 1047, 1084, 1173, 1287, 1300, 1324, 1346, 1347, 1381, 1404,\n 1407, 1408, 1421, 1427, 1434, 1437, 1443, 1445, 1449, 1453, 1456,\n 1458, 1464, 1467, 1469, 1471, 1472, 1478, 1490, 1496, 1501, 1503,\n 1506, 1510, 1517, 1530, 1532, 1533, 1541, 1543, 1551, 1552, 156... |
/verifier/test_outputs.py:688: AssertionError |
______________ 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}" |
node_ids = {node["node_id"] for node in tree["nodes"]} |
assert len(node_ids) == len(tree["nodes"]) |
assert all(edge["source"] in node_ids and edge["target"] in node_ids for edge in tree["edges"]) |
> assert tree["maximum_event_mass_closure_msun"] < 1e-8 |
E assert 9891.30896718 < 1e-08 |
/verifier/test_outputs.py:715: 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 |
E AssertionError: assert 185 == 187 |
E + where 185 = len([{'central_mass_pre_msun': '3.59765595183', 'collision_mass_fraction': '0.001649644566556734', 'companion_mass_msun': '15.43193152957', 'cumulative_collision_mass_msun': '15.43193152957', ...}, {'central_mass_pre_msun': '20.3303481489', 'collision_mass_fraction': '0.00360100606652345', 'comp... |
E + and 187 = len([{'central_mass_pre_msun': 3.59765595183, 'collision_mass_fraction': 0.0016467983100525389, 'companion_mass_msun': 15.43193152957, 'cumulative_collision_mass_msun': 15.43193152957, ...}, {'central_mass_pre_msun': 20.3303481489, 'collision_mass_fraction': 0.003594792978476318, 'companion_mass... |
/verifier/test_outputs.py:738: AssertionError |
______ test_public_remnant_scenarios_match_independent_analytic_solution _______ |
def test_public_remnant_scenarios_match_independent_analytic_solution() -> None: |
instance = read_json(PUBLIC_INSTANCE) |
history, _ = canonical_history(PUBLIC_HISTORY) |
rows = read_csv(OUTPUT / "remnant_scenarios.csv", REMNANT_COLUMNS) |
metallicities = instance["remnant_model"]["metallicity_scenarios_zsun"] |
assert len(rows) == len(metallicities) |
previous = math.inf |
for index, (row, metallicity) in enumerate(zip(rows, metallicities, strict=True), start=1): |
main_mass, remnant = analytic_remnant(float(history[-1, 0]), float(history[-1, 1]), float(metallicity), instance["remnant_model"]) |
> assert row["scenario_id"] == f"z_{index:02d}" |
E AssertionError: assert 'z_00' == 'z_01' |
E |
E - z_01 |
E ? ^ |
E + z_00 |
E ? ^ |
/verifier/test_outputs.py:768: AssertionError |
____________ test_report_contains_auditable_physical_interpretation ____________ |
def test_report_contains_auditable_physical_interpretation() -> None: |
report = (OUTPUT / "report.md").read_text(encoding="utf-8").lower() |
for phrase in ("collision", "smooth", "metallicity", "remnant"): |
assert phrase in report |
> assert "spine" in report and "tree" in report |
E AssertionError: assert ('spine' in '# runaway-collision reconstruction report\n\n## overview\nthis report presents the reconstructed runaway-collision and stellar wind evolution history of the most massive star in a forming dense cluster.\n\n## collision spine & event detection\n- total detected collision event... |
/verifier/test_outputs.py:779: AssertionError |
_______ test_reusable_cli_generalizes_to_private_randomized_histories[1] _______ |
seed = 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.