text stringlengths 0 251 |
|---|
"low_energy": { |
"x_field": "energy_kev", |
"y_field": "transient_excess", |
"selection": "used_in_fit", |
}, |
"high_energy": { |
"x_field": "energy_kev", |
"y_field": "transient_excess", |
"selection": "used_in_fit", |
}, |
} |
series: dict[str, dict[str, object]] = {} |
if isinstance(submitted_series, dict): |
items = submitted_series.items() |
elif isinstance(submitted_series, list): |
items = [] |
for declaration in submitted_series: |
assert isinstance(declaration, dict), ( |
"figure manifest series entries must be objects") |
submitted_name = declaration.get( |
"name", |
declaration.get("series_id"), |
) |
assert isinstance(submitted_name, str), ( |
"figure manifest series entries need a name") |
items.append((submitted_name, declaration)) |
else: |
> raise AssertionError( |
"figure manifest panel series must be an object or list") |
E AssertionError: figure manifest panel series must be an object or list |
test_outputs.py:1102: 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_background_subtraction_uncertainty_and_fit_membership |
PASSED ../root::test_weighted_tail_fit_matches_independent_solution |
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_scientific_figure_matches_submitted_series_fit_and_band |
FAILED ../root::test_adversarial_figure_shortcuts_are_rejected - AssertionErr... |
========================= 3 failed, 7 passed in 0.50s ========================== |
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 FAILED [ 20%] |
../root::test_all_channel_interval_statistics_match_independent_reduction FAILED [ 30%] |
../root::test_background_subtraction_uncertainty_and_fit_membership FAILED [ 40%] |
../root::test_weighted_tail_fit_matches_independent_solution FAILED [ 50%] |
../root::test_bootstrap_trace_and_reported_interval_are_reproducible FAILED [ 60%] |
../root::test_transient_tail_has_the_expected_physical_structure FAILED [ 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() |
^^^^^^^^^^^^^^^^^ |
test_outputs.py:1874: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
test_outputs.py:762: in load_submission |
read_csv(ROOT / "spectrum_analysis.csv"), |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
test_outputs.py:126: in read_csv |
with path.open(newline="", encoding="utf-8") as handle: |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
self = PosixPath('/root/spectrum_analysis.csv'), mode = 'r', buffering = -1 |
encoding = 'utf-8', errors = None, newline = '' |
def open(self, mode='r', buffering=-1, encoding=None, |
errors=None, newline=None): |
""" |
Open the file pointed to by this path and return a file object, as |
the built-in open() function does. |
""" |
if "b" not in mode: |
encoding = io.text_encoding(encoding) |
> return io.open(self, mode, buffering, encoding, errors, newline) |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
E FileNotFoundError: [Errno 2] No such file or directory: '/root/spectrum_analysis.csv' |
/usr/local/lib/python3.12/pathlib.py:1013: FileNotFoundError |
__________________ test_transient_window_and_interval_counts ___________________ |
def test_transient_window_and_interval_counts() -> None: |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.