text
stringlengths
0
251
"figure manifest must declare image pixel dimensions")
E AssertionError: figure manifest must declare image pixel dimensions
E assert False
E + where False = isinstance(None, dict)
test_outputs.py:1456: AssertionError
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../root::test_transient_window_and_interval_counts
PASSED ../root::test_all_channel_interval_statistics_match_independent_reduction
PASSED ../root::test_bootstrap_trace_and_reported_interval_are_reproducible
PASSED ../root::test_transient_tail_has_the_expected_physical_structure
PASSED ../root::test_figure_contract_accepts_flexible_wording_and_dimensions
FAILED ../root::test_artifacts_parse_and_have_declared_schemas - AssertionErr...
FAILED ../root::test_background_subtraction_uncertainty_and_fit_membership - ...
FAILED ../root::test_weighted_tail_fit_matches_independent_solution - Asserti...
FAILED ../root::test_scientific_figure_matches_submitted_series_fit_and_band
FAILED ../root::test_adversarial_figure_shortcuts_are_rejected - AssertionErr...
========================= 5 failed, 5 passed in 0.58s ==========================
ANTI_TAMPER: verifier integrity preflight passed
============================= test session starts ==============================
platform linux -- Python 3.12.13, pytest-8.4.2, pluggy-1.6.0 -- /usr/local/bin/python3
rootdir: /root
configfile: ../dev/null
plugins: json-ctrf-0.3.5
collecting ... collected 10 items
../root::test_artifacts_parse_and_have_declared_schemas FAILED [ 10%]
../root::test_transient_window_and_interval_counts PASSED [ 20%]
../root::test_all_channel_interval_statistics_match_independent_reduction PASSED [ 30%]
../root::test_background_subtraction_uncertainty_and_fit_membership PASSED [ 40%]
../root::test_weighted_tail_fit_matches_independent_solution PASSED [ 50%]
../root::test_bootstrap_trace_and_reported_interval_are_reproducible PASSED [ 60%]
../root::test_transient_tail_has_the_expected_physical_structure PASSED [ 70%]
../root::test_scientific_figure_matches_submitted_series_fit_and_band FAILED [ 80%]
../root::test_figure_contract_accepts_flexible_wording_and_dimensions PASSED [ 90%]
../root::test_adversarial_figure_shortcuts_are_rejected FAILED [100%]
=================================== FAILURES ===================================
________________ test_artifacts_parse_and_have_declared_schemas ________________
def test_artifacts_parse_and_have_declared_schemas() -> None:
analysis, slopes, report = load_submission()
reference = independent_reference()
assert len(analysis) == len(reference["rows"]) == 138
assert list(analysis[0]) == ANALYSIS_COLUMNS
assert len(slopes) == reference["events"]["precursor"]["fit"]["bootstrap_iterations"]
assert list(slopes[0]) == [
"iteration",
"precursor_spectral_index_p",
"primary_spectral_index_p",
"delta_p_second_minus_first",
]
assert [int(row["iteration"]) for row in slopes] == list(range(len(slopes)))
assert report["schema_version"] == "1.0"
assert set(report) == {"schema_version", "events", "comparison"}
assert set(report["events"]) == set(EVENT_IDS)
for event_id in EVENT_IDS:
event_report = report["events"][event_id]
assert set(event_report) == {"transient_window", "fit"}
assert set(event_report["transient_window"]) == {
"center_utc",
"start_utc",
"end_utc",
}
assert set(event_report["fit"]) == FIT_FIELDS
assert all(
math.isfinite(float(row[f"{event_id}_spectral_index_p"]))
for row in slopes
)
assert set(report["comparison"]) == {
"first_event_id",
"second_event_id",
"delta_definition",
"n_common_points",
"delta_p_second_minus_first",
"delta_gls_p_second_minus_first",
"delta_method_shift",
"bootstrap_median_delta_p",
"bootstrap_ci95_low_delta_p",
"bootstrap_ci95_high_delta_p",
"bootstrap_probability_delta_positive",
}
assert all(
math.isfinite(float(row["delta_p_second_minus_first"]))
for row in slopes
)
> image, manifest = load_figure()
^^^^^^^^^^^^^
test_outputs.py:1651:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_outputs.py:1257: in load_figure
manifest = normalize_figure_manifest(raw_manifest)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test_outputs.py:1237: in normalize_figure_manifest
normalize_panel(panel, palette)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _