text
stringlengths
0
249
# independently recompute the sorted spectrum at every scale point
reference = independent_scan(base_masses, branch, config, grid)
> np.testing.assert_allclose(
curves, reference, rtol=FREQ_RTOL, atol=FREQ_ATOL,
err_msg=f"sweep frequencies_{branch} disagree with the independent spectrum",
)
E AssertionError:
E Not equal to tolerance rtol=1e-05, atol=1e-06
E sweep frequencies_radial_x disagree with the independent spectrum
E Mismatched elements: 201 / 366 (54.9%)
E Max absolute difference among violations: 0.02621139
E Max relative difference among violations: 0.01343141
E ACTUAL: array([[7.789764, 7.876961, 8.037529, 8.964788, 9.059628, 9.17367 ],
E [7.767837, 7.864235, 8.030883, 8.533531, 8.638793, 8.736494],
E [7.710634, 7.836881, 8.004042, 8.167194, 8.288429, 8.35491 ],...
E DESIRED: array([[7.789612, 7.876863, 8.037486, 8.960545, 9.055491, 9.169482],
E [7.767615, 7.86412 , 8.030813, 8.531034, 8.636417, 8.734005],
E [7.710368, 7.836752, 8.003861, 8.166364, 8.287607, 8.35401 ],...
test_outputs.py:771: AssertionError
__________ test_submitted_solver_generalizes_to_heldout_configuration __________
def test_submitted_solver_generalizes_to_heldout_configuration() -> None:
> run_all_checks(run_heldout_solver(), HELDOUT_INPUT)
test_outputs.py:1080:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_outputs.py:980: in run_all_checks
assert_matches_independent(bundle, input_path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
bundle = Bundle(output_dir=PosixPath('/tmp/chain-modes-heldout-output'), config={'model': 'mixed_species_linear_chain', 'conven..., 0.0, 0.10685044624607827], [0.1563957978610756, 0.00940896674713366, 0.7000576709171762, 0.10685044624607827, 0.0]]})
input_path = PosixPath('/verifier/heldout_input.json')
def assert_matches_independent(bundle: Bundle, input_path: Path) -> None:
reference = independent_reference(str(input_path))
assert reference.max_block_leakage < 1e-6, (
"method B: branches are not decoupled (spatial block leakage too large)"
)
fz = float(bundle.arrays["reference_axial_frequency_hz"])
for branch in BRANCHES:
agent_ratios = np.sort(bundle.arrays[f"frequencies_{branch}"] / fz)
> np.testing.assert_allclose(
agent_ratios, reference.frequency_ratios[branch],
rtol=FREQ_RTOL, atol=FREQ_ATOL,
err_msg=f"{branch} frequencies disagree with the full 3N Hessian (method B)",
)
E AssertionError:
E Not equal to tolerance rtol=1e-05, atol=1e-06
E radial_x frequencies disagree with the full 3N Hessian (method B)
E Mismatched elements: 2 / 5 (40%)
E Max absolute difference among violations: 0.02256838
E Max relative difference among violations: 0.01144257
E ACTUAL: array([1.949748, 1.971267, 9.23647 , 9.36645 , 9.370668])
E DESIRED: array([1.972317, 1.993587, 9.236471, 9.36645 , 9.370668])
test_outputs.py:473: AssertionError
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../root::test_nominal_schema
PASSED ../root::test_nominal_equilibrium_and_curvature
PASSED ../root::test_nominal_branch_internal_consistency
PASSED ../root::test_nominal_lamb_dicke_and_sum_rule
PASSED ../root::test_nominal_sympathetic_coupling
PASSED ../root::test_nominal_json_derived_from_arrays
PASSED ../root::test_nominal_mode_mediated_ising_scan
PASSED ../root::test_nominal_anti_cheat
FAILED ../root::test_nominal_matches_full_hessian_method - AssertionError:
FAILED ../root::test_nominal_convergence_study - AssertionError:
FAILED ../root::test_nominal_mass_ratio_scan - AssertionError:
FAILED ../root::test_submitted_solver_generalizes_to_heldout_configuration - ...
========================= 4 failed, 8 passed in 1.03s ==========================