text stringlengths 0 2.85k |
|---|
============================= test session starts ============================== |
platform linux -- Python 3.12.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/local/bin/python3 |
rootdir: /app |
configfile: ../dev/null |
plugins: json-ctrf-0.3.5 |
collecting ... collected 7 items |
::test_frozen_instance_untampered PASSED [ 14%] |
::test_schema_and_independent_recompute FAILED [ 28%] |
::test_reported_mechanism_is_internally_derived FAILED [ 42%] |
::test_source_mechanism_and_phase_contrast FAILED [ 57%] |
::test_reference_cutoff_convergence_hermiticity_and_isolation PASSED [ 71%] |
::test_not_constant_or_fabricated PASSED [ 85%] |
::test_solver_generalizes_on_hidden_case FAILED [100%] |
=================================== FAILURES =================================== |
____________________ test_schema_and_independent_recompute _____________________ |
def test_schema_and_independent_recompute(): |
data = submission() |
assert isinstance(data.get("cases"), list) |
public = heldout_payload()["public_instance"] |
assert [case["id"] for case in data["cases"]] == [case["id"] for case in public["cases"]] |
references = public_reference() |
for actual, case in zip(data["cases"], public["cases"]): |
> compare_case(actual, case, references[case["id"]], public["numerics"]) |
/verifier/test_outputs.py:492: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
/verifier/test_outputs.py:462: in compare_case |
np.testing.assert_allclose(array, reference_grid, rtol=RTOL_FIELD, atol=atol, err_msg=key) |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
args = (<function assert_allclose.<locals>.compare at 0x78acf109f600>, array([[-0. , -0.57843604, -0.80584716, ..., 0... , -0.00178451], |
[ 0.0005942 , 0.00357483, 0.00898155, ..., 0.00597113, |
0.00178451, -0. ]])) |
kwds = {'equal_nan': True, 'err_msg': 'pseudospin_nz_grid', 'header': 'Not equal to tolerance rtol=0.06, atol=0.035', 'verbose': True} |
@wraps(func) |
def inner(*args, **kwds): |
with self._recreate_cm(): |
> return func(*args, **kwds) |
^^^^^^^^^^^^^^^^^^^ |
E AssertionError: |
E Not equal to tolerance rtol=0.06, atol=0.035 |
E pseudospin_nz_grid |
E Mismatched elements: 960 / 1024 (93.8%) |
E Max absolute difference: 1.93235265 |
E Max relative difference: 1005.04980057 |
E x: array([[-0. , -0.578436, -0.805847, ..., 0.911866, 0.831036, |
E 0.596602], |
E [ 0.578436, -0. , -0.529987, ..., 0.955049, 0.91956 ,... |
E y: array([[-0. , -0.001785, -0.005971, ..., -0.008982, -0.003575, |
E -0.000594], |
E [ 0.001785, -0. , -0.008952, ..., -0.03609 , -0.016147,... |
/usr/local/lib/python3.12/contextlib.py:81: AssertionError |
________________ test_reported_mechanism_is_internally_derived _________________ |
def test_reported_mechanism_is_internally_derived(): |
data = submission() |
public = heldout_payload()["public_instance"] |
for actual, _case in zip(data["cases"], public["cases"]): |
mechanism = actual["mechanism"] |
fields = actual["effective_fields"] |
n = int(public["numerics"]["realspace_grid"]["n"]) |
shift = float(public["numerics"]["realspace_grid"]["shift_frac"][0]) |
u = (np.arange(n) + shift) / n |
phase = np.exp(-2j * np.pi * u)[:, None] |
b_grid = np.array(fields["B_over_B0_grid"], dtype=float) |
d_grid = np.array(fields["D_over_hbar_omega_c_grid"], dtype=float) |
delta_grid = np.array(fields["Delta_tilde_meV_grid"], dtype=float) |
assert abs(float(mechanism["emergent_flux_quanta"]) - float(np.mean(b_grid))) < 2e-3 |
> assert abs(float(mechanism["beta1_over_B0"]) - float(np.mean(b_grid * phase).real)) < 2e-3 |
E assert 0.43191321708770986 < 0.002 |
E + where 0.43191321708770986 = abs((0.2159566085438549 - -0.21595660854385496)) |
E + where 0.2159566085438549 = float(0.2159566085438549) |
E + and -0.21595660854385496 = float(-0.21595660854385496) |
E + where -0.21595660854385496 = (-0.21595660854385496-2.7755575615628914e-17j).real |
E + where (-0.21595660854385496-2.7755575615628914e-17j) = <function mean at 0x78acf0ebdcb0>((array([[-15.25097901, -7.68684257, -2.69401973, ..., -1.1884283 ,\n -2.89295538, -8.35123144],\n [ -7.68684257, -11.89572133, -6.09142526, ..., -0.60588708,\n -1.20465958, -2.8929... |
E + where <function mean at 0x78acf0ebdcb0> = np.mean |
/verifier/test_outputs.py:509: AssertionError |
___________________ test_source_mechanism_and_phase_contrast ___________________ |
def test_source_mechanism_and_phase_contrast(): |
cases = {case["id"]: case for case in submission()["cases"]} |
topological = cases["topological_magic"] |
trivial = cases["trivial_no_magic"] |
weak = cases["weak_potential_no_magic"] |
assert topological["mechanism"]["theta_xi_zero_deg"] is not None |
assert topological["mechanism"]["theta_bandwidth_local_min_deg"] is not None |
assert trivial["mechanism"]["theta_xi_zero_deg"] is None |
assert trivial["mechanism"]["theta_bandwidth_local_min_deg"] is None |
assert weak["mechanism"]["theta_xi_zero_deg"] is None |
assert weak["mechanism"]["theta_bandwidth_local_min_deg"] is None |
assert all(abs(float(case["mechanism"]["emergent_flux_quanta"])) > 0.95 for case in cases.values()) |
> assert {entry["chern_number"] for entry in topological["geometry"]} == {-1} |
E AssertionError: assert {1} == {-1} |
E |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 62