Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
0
116
============================= 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 5 items
test_outputs.py::test_output_schema_shapes_coordinates_and_finiteness FAILED [ 20%]
test_outputs.py::test_cavity_and_bare_scattering_match_independent_physics FAILED [ 40%]
test_outputs.py::test_inference_and_controls_match_independent_reference FAILED [ 60%]
test_outputs.py::test_physical_invariants_and_internal_consistency FAILED [ 80%]
test_outputs.py::test_summary_is_derived_from_saved_artifacts PASSED [100%]
=================================== FAILURES ===================================
_____________ test_output_schema_shapes_coordinates_and_finiteness _____________
def test_output_schema_shapes_coordinates_and_finiteness() -> None:
assert sha256(INPUT) == INPUT_SHA256, "Frozen chiral-cavity input changed"
arrays, summary = load_submission()
expected, _ = independent_reference()
map_shape = (expected["energy_eV"].size, expected["thickness_nm"].size)
for key in MAP_KEYS:
assert arrays[key].shape == map_shape, f"{key} has shape {arrays[key].shape}; expected {map_shape}"
for key in (
"lossless_T",
"lossless_R",
"cavity_log_ratio_slope_per_nm",
"bare_log_ratio_slope_per_nm",
"unit_kappa0_im_basis",
"model_im_kappa",
"cavity_inferred_im_kappa",
"bare_inferred_im_kappa",
):
assert arrays[key].shape == (map_shape[0],), f"{key} has shape {arrays[key].shape}"
assert arrays["energy_eV"].shape == (map_shape[0],), "energy_eV has the wrong shape"
assert arrays["thickness_nm"].shape == (map_shape[1],), "thickness_nm has the wrong shape"
> np.testing.assert_allclose(arrays["energy_eV"], expected["energy_eV"], rtol=0.0, atol=1e-12)
E AssertionError:
E Not equal to tolerance rtol=0, atol=1e-12
E
E Mismatched elements: 240 / 241 (99.6%)
E Max absolute difference among violations: 1.7
E Max relative difference among violations: 1.
E ACTUAL: array([0. , 0.009583, 0.019167, 0.02875 , 0.038333, 0.047917,
E 0.0575 , 0.067083, 0.076667, 0.08625 , 0.095833, 0.105417,
E 0.115 , 0.124583, 0.134167, 0.14375 , 0.153333, 0.162917,...
E DESIRED: array([1.7 , 1.7025, 1.705 , 1.7075, 1.71 , 1.7125, 1.715 , 1.7175,
E 1.72 , 1.7225, 1.725 , 1.7275, 1.73 , 1.7325, 1.735 , 1.7375,
E 1.74 , 1.7425, 1.745 , 1.7475, 1.75 , 1.7525, 1.755 , 1.7575,...
test_outputs.py:363: AssertionError
__________ test_cavity_and_bare_scattering_match_independent_physics ___________
def test_cavity_and_bare_scattering_match_independent_physics() -> None:
arrays, _ = load_submission()
expected, _ = independent_reference()
for key in (
"cavity_T_plus",
"cavity_T_minus",
"cavity_R_plus",
"cavity_R_minus",
"bare_T_plus",
"bare_T_minus",
"bare_R_plus",
"bare_R_minus",
"cavity_over_bare_mean_T",
):
> np.testing.assert_allclose(
arrays[key],
expected[key],
rtol=2e-5,
atol=2e-8,
err_msg=f"{key} disagrees with the independent characteristic-matrix calculation",
)
E AssertionError:
E Not equal to tolerance rtol=2e-05, atol=2e-08
E cavity_T_plus disagrees with the independent characteristic-matrix calculation
E Mismatched elements: 19471 / 19521 (99.7%)
E Max absolute difference among violations: 0.99880847
E Max relative difference among violations: 838.25958932
E ACTUAL: array([[1.000000e+00, 1.000000e+00, 1.000000e+00, ..., 1.000000e+00,
E 1.000000e+00, 1.000000e+00],
E [1.476406e-04, 1.468842e-04, 1.461108e-04, ..., 7.714891e-05,...
E DESIRED: array([[0.001756, 0.001957, 0.00222 , ..., 0.001192, 0.001205, 0.001231],
E [0.001777, 0.001982, 0.002251, ..., 0.001202, 0.001217, 0.001246],
E [0.001798, 0.002008, 0.002282, ..., 0.001212, 0.00123 , 0.001261],...
test_outputs.py:386: AssertionError
___________ test_inference_and_controls_match_independent_reference ____________
def test_inference_and_controls_match_independent_reference() -> None:
arrays, _ = load_submission()
expected, _ = independent_reference()
for key in ("enantiomer_dct", "achiral_dct", "lossless_T", "lossless_R"):
> np.testing.assert_allclose(
arrays[key],
expected[key],
rtol=2e-5,
atol=2e-8,
err_msg=f"{key} does not match the independent control calculation",
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
90