text stringlengths 0 116 |
|---|
np.testing.assert_allclose( |
arrays["cavity_minus_bare_dct"], |
arrays["cavity_dct"] - arrays["bare_dct"], |
rtol=2e-7, |
atol=2e-10, |
) |
np.testing.assert_allclose( |
arrays["cavity_over_bare_mean_T"], |
(arrays["cavity_T_plus"] + arrays["cavity_T_minus"]) / (arrays["bare_T_plus"] + arrays["bare_T_minus"]), |
rtol=2e-7, |
atol=2e-10, |
) |
> np.testing.assert_allclose( |
arrays["cavity_R_plus"], |
arrays["cavity_R_minus"], |
rtol=2e-7, |
atol=2e-9, |
err_msg="The reciprocal normal-incidence cavity should not split reflectance by helicity", |
) |
E AssertionError: |
E Not equal to tolerance rtol=2e-07, atol=2e-09 |
E The reciprocal normal-incidence cavity should not split reflectance by helicity |
E Mismatched elements: 18269 / 19521 (93.6%) |
E Max absolute difference among violations: 0.00079807 |
E Max relative difference among violations: 0.00209011 |
E ACTUAL: array([[0.920629, 0.917815, 0.914523, ..., 0.934664, 0.933269, 0.931802], |
E [0.920429, 0.917583, 0.91425 , ..., 0.9344 , 0.932989, 0.931504], |
E [0.920227, 0.917349, 0.913974, ..., 0.934133, 0.932706, 0.931201],... |
E DESIRED: array([[0.920629, 0.917815, 0.914523, ..., 0.934664, 0.933269, 0.931803], |
E [0.920429, 0.917583, 0.91425 , ..., 0.9344 , 0.93299 , 0.931504], |
E [0.920227, 0.917349, 0.913974, ..., 0.934134, 0.932707, 0.931201],... |
test_outputs.py:464: AssertionError |
==================================== PASSES ==================================== |
=========================== short test summary info ============================ |
PASSED test_outputs.py::test_output_schema_shapes_coordinates_and_finiteness |
PASSED test_outputs.py::test_summary_is_derived_from_saved_artifacts |
FAILED test_outputs.py::test_cavity_and_bare_scattering_match_independent_physics |
FAILED test_outputs.py::test_inference_and_controls_match_independent_reference |
FAILED test_outputs.py::test_physical_invariants_and_internal_consistency - A... |
========================= 3 failed, 2 passed in 0.15s ========================== |
============================= 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 PASSED [ 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_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: 11387 / 19521 (58.3%) |
E Max absolute difference among violations: 0.00019977 |
E Max relative difference among violations: 0.00156745 |
E ACTUAL: 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],... |
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, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.