text stringclasses 239
values |
|---|
PASSED ::test_device_prediction_curves |
PASSED ::test_operating_point_constraints_and_selection |
FAILED ::test_universal_observables_match_independent_reference - AssertionEr... |
FAILED ::test_universal_summary_and_crossover_landmarks - assert 0.1791524109... |
========================= 2 failed, 7 passed in 1.15s ========================== |
============================= 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 9 items |
::test_artifact_schema_and_order FAILED [ 11%] |
::test_full_charge_bands_and_symmetry FAILED [ 22%] |
::test_universal_observables_match_independent_reference FAILED [ 33%] |
::test_serialized_band_observable_consistency FAILED [ 44%] |
::test_universal_summary_and_crossover_landmarks PASSED [ 55%] |
::test_reported_charge_cutoff_is_converged PASSED [ 66%] |
::test_calibration_parameters_and_weighted_fit PASSED [ 77%] |
::test_device_prediction_curves PASSED [ 88%] |
::test_operating_point_constraints_and_selection PASSED [100%] |
=================================== FAILURES =================================== |
________________________ test_artifact_schema_and_order ________________________ |
def test_artifact_schema_and_order(): |
assert json.loads((ROOT / "transmon_campaign.json").read_text()) == CAMPAIGN, ( |
"the supplied campaign input was modified" |
) |
> bands = read_bands() |
^^^^^^^^^^^^ |
/verifier/test_outputs.py:343: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
def read_bands() -> dict: |
path = ROOT / "universal_bands.json" |
assert path.is_file(), "missing universal_bands.json" |
data = json.loads(path.read_text()) |
assert set(data) == {"ratio_grid", "ng_grid", "energies"} |
ratios = np.asarray(data["ratio_grid"], dtype=float) |
ng_grid = np.asarray(data["ng_grid"], dtype=float) |
energies = np.asarray(data["energies"], dtype=float) |
expected_shape = (len(ratios), len(ng_grid), LEVELS) |
> assert energies.shape == expected_shape, f"energies shape {energies.shape} != {expected_shape}" |
E AssertionError: energies shape (16, 4, 65) != (16, 65, 4) |
E assert (16, 4, 65) == (16, 65, 4) |
E |
E At index 1 diff: 4 != 65 |
E |
E Full diff: |
E ( |
E 16, |
E + 4,... |
E |
E ...Full output truncated (3 lines hidden), use '-vv' to show |
/verifier/test_outputs.py:113: AssertionError |
_____________________ test_full_charge_bands_and_symmetry ______________________ |
def test_full_charge_bands_and_symmetry(): |
> bands = read_bands() |
^^^^^^^^^^^^ |
/verifier/test_outputs.py:359: |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
def read_bands() -> dict: |
path = ROOT / "universal_bands.json" |
assert path.is_file(), "missing universal_bands.json" |
data = json.loads(path.read_text()) |
assert set(data) == {"ratio_grid", "ng_grid", "energies"} |
ratios = np.asarray(data["ratio_grid"], dtype=float) |
ng_grid = np.asarray(data["ng_grid"], dtype=float) |
energies = np.asarray(data["energies"], dtype=float) |
expected_shape = (len(ratios), len(ng_grid), LEVELS) |
> assert energies.shape == expected_shape, f"energies shape {energies.shape} != {expected_shape}" |
E AssertionError: energies shape (16, 4, 65) != (16, 65, 4) |
E assert (16, 4, 65) == (16, 65, 4) |
E |
E At index 1 diff: 4 != 65 |
E |
E Full diff: |
E ( |
E 16, |
E + 4,... |
E |
E ...Full output truncated (3 lines hidden), use '-vv' to show |
/verifier/test_outputs.py:113: AssertionError |
____________ test_universal_observables_match_independent_reference ____________ |
def test_universal_observables_match_independent_reference(): |
rows = read_csv( |
ROOT / "universal_observables.csv", |
UNIVERSAL_HEADER, |
len(CAMPAIGN["universal"]["ratio_grid"]), |
) |
reference = universal_reference()[2] |
np.testing.assert_allclose(rows[:, 0], reference[:, 0], atol=0) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.