text
string
/verifier/test_outputs.py:604: AssertionError
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ::test_frozen_inputs_unmodified
PASSED ::test_required_artifacts_and_structure
PASSED ::test_signed_sensitivity_and_calibrations
PASSED ::test_global_coefficients_and_amplitudes
PASSED ::test_covariance_and_uncorrelated_combinations
FAILED ::test_block_frequency_reduction_matches_counts - AssertionError: bloc...
FAILED ::test_hourly_bins_are_weighted_reductions - AssertionError: hourly-bi...
FAILED ::test_fit_quality_and_run_diagnostics - AssertionError: run diagnosti...
========================= 3 failed, 5 passed in 0.46s ==========================
============================= 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 8 items
::test_frozen_inputs_unmodified PASSED [ 12%]
::test_required_artifacts_and_structure PASSED [ 25%]
::test_signed_sensitivity_and_calibrations PASSED [ 37%]
::test_block_frequency_reduction_matches_counts PASSED [ 50%]
::test_hourly_bins_are_weighted_reductions PASSED [ 62%]
::test_global_coefficients_and_amplitudes PASSED [ 75%]
::test_covariance_and_uncorrelated_combinations PASSED [ 87%]
::test_fit_quality_and_run_diagnostics PASSED [100%]
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ::test_frozen_inputs_unmodified
PASSED ::test_required_artifacts_and_structure
PASSED ::test_signed_sensitivity_and_calibrations
PASSED ::test_block_frequency_reduction_matches_counts
PASSED ::test_hourly_bins_are_weighted_reductions
PASSED ::test_global_coefficients_and_amplitudes
PASSED ::test_covariance_and_uncorrelated_combinations
PASSED ::test_fit_quality_and_run_diagnostics
============================== 8 passed in 0.44s ===============================
============================= 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 8 items
::test_frozen_inputs_unmodified PASSED [ 12%]
::test_required_artifacts_and_structure FAILED [ 25%]
::test_signed_sensitivity_and_joint_calibrations FAILED [ 37%]
::test_block_frequency_reduction_matches_counts FAILED [ 50%]
::test_hourly_bins_are_weighted_reductions FAILED [ 62%]
::test_global_coefficients_and_amplitudes FAILED [ 75%]
::test_covariance_and_uncorrelated_combinations FAILED [ 87%]
::test_fit_quality_and_run_diagnostics FAILED [100%]
=================================== FAILURES ===================================
____________________ test_required_artifacts_and_structure _____________________
def test_required_artifacts_and_structure():
data = agent_json()
for group in (
"sensitivity",
"calibrations",
"calibration_covariance",
"harmonic_amplitudes_hz",
"coefficients",
"coefficient_errors",
"coefficient_covariance",
"uncorrelated_combinations",
"reduced_chi2",
"runs",
):
assert group in data, f"result.json missing {group}"
assert len(data["runs"]) == 16
assert len(agent_blocks()) == len(reference()["blocks"])
> assert len(agent_hourly()) == len(reference()["hourly"])
E AssertionError: assert 368 == 366
E + where 368 = len([{'corrected_hz': '86.71058960095141', 'hour_index': '0', 'n_blocks': '2', 'run_id': 'run_01', ...}, {'corrected_hz': '89.55459277578508', 'hour_index': '1', 'n_blocks': '1', 'run_id': 'run_01', ...}, {'corrected_hz': '92.65174335168844', 'hour_index': '2', 'n_blocks': '2', 'run_id': 'run_01...
E + where [{'corrected_hz': '86.71058960095141', 'hour_index': '0', 'n_blocks': '2', 'run_id': 'run_01', ...}, {'corrected_hz': '89.55459277578508', 'hour_index': '1', 'n_blocks': '1', 'run_id': 'run_01', ...}, {'corrected_hz': '92.65174335168844', 'hour_index': '2', 'n_blocks': '2', 'run_id': 'run_01', ...},...
E + and 366 = len([{'corrected_hz': 0.9498957791010424, 'hour_index': 0, 'n_blocks': 2, 'run_id': 'run_01', ...}, {'corrected_hz': 0.8953887556352661, 'hour_index': 1, 'n_blocks': 1, 'run_id': 'run_01', ...}, {'corrected_hz': 0.8604503418869985, 'hour_index': 2, 'n_blocks': 2, 'run_id': 'run_01', ...}, {'corr...
/verifier/test_outputs.py:409: AssertionError
________________ test_signed_sensitivity_and_joint_calibrations ________________
def test_signed_sensitivity_and_joint_calibrations():
data, ref = agent_json(), reference()
got_sensitivity = np.array(
[
data["sensitivity"]["coeff_const_hz"],
data["sensitivity"]["coeff_mj2_hz"],
data["sensitivity"]["k_pair_hz"],
],
dtype=float,
)
> assert np.allclose(got_sensitivity, ref["sensitivity"], rtol=0.03, atol=0)
E assert False
E + where False = <function allclose at 0x742ee93033b0>(array([ 2.16545253e+15, -7.42440866e+14, -4.45464520e+15]), array([ 2.16545253e+15, -7.42440866e+14, -8.90929039e+15]), rtol=0.03, atol=0)
E + where <function allclose at 0x742ee93033b0> = np.allclose