Dataset Viewer
Auto-converted to Parquet Duplicate
text
string
============================= 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 10 items
::test_frozen_agent_inputs_are_untampered PASSED [ 10%]
::test_result_has_exact_blind_shot_set PASSED [ 20%]
::test_calibration_within_declared_bounds_and_recovered FAILED [ 30%]
::test_calibration_reproduces_all_known_flux_shots FAILED [ 40%]
::test_arrays_are_well_formed_and_on_the_supplied_grid PASSED [ 50%]
::test_reported_forward_histories_match_independent_solver FAILED [ 60%]
::test_blind_sensor_residuals_are_at_the_noise_floor FAILED [ 70%]
::test_flux_histories_match_withheld_injections PASSED [ 80%]
::test_flux_energy_and_peak_are_recovered_and_self_consistent PASSED [ 90%]
::test_summary_is_consistent PASSED [100%]
=================================== FAILURES ===================================
____________ test_calibration_within_declared_bounds_and_recovered _____________
def test_calibration_within_declared_bounds_and_recovered():
calibration = reported_calibration()
vector = np.array(
[
calibration["conductivity_scale"],
calibration["depth_offset_m"],
*calibration["sensor_time_constants_s"],
],
dtype=float,
)
bounds = CONFIG["calibration_bounds"]
lower = np.array(
[
bounds["conductivity_scale"][0],
bounds["depth_offset_m"][0],
bounds["sensor_time_constants_s"][0][0],
bounds["sensor_time_constants_s"][1][0],
]
)
upper = np.array(
[
bounds["conductivity_scale"][1],
bounds["depth_offset_m"][1],
bounds["sensor_time_constants_s"][0][1],
bounds["sensor_time_constants_s"][1][1],
]
)
assert np.all(vector >= lower) and np.all(vector <= upper)
assert abs(vector[0] - CAL_TRUE[0]) <= 0.05, "conductivity scale not calibrated"
> assert abs(vector[1] - CAL_TRUE[1]) <= 5.0e-5, "sensor depth offset not calibrated"
E AssertionError: sensor depth offset not calibrated
E assert 0.00020131687432589887 <= 5e-05
E + where 0.00020131687432589887 = abs((-4.131687432589886e-05 - 0.00016))
/verifier/test_outputs.py:160: AssertionError
_______________ test_calibration_reproduces_all_known_flux_shots _______________
def test_calibration_reproduces_all_known_flux_shots():
calibration = reported_calibration()
t_s = CALIBRATION_DATA["t_s"].astype(float)
measured = CALIBRATION_DATA["temperature_K"].astype(float)
known_flux = CALIBRATION_DATA["known_flux_W_m2"].astype(float)
noise = CALIBRATION_DATA["noise_std_K"].astype(float)
predictions = []
for q in known_flux:
prediction, _ = simulate(t_s, q, CONFIG, calibration, nx=83, cfl=0.31)
predictions.append(prediction)
predictions = np.asarray(predictions)
rms = float(np.sqrt(np.mean((predictions - measured) ** 2)))
> assert rms <= CALIBRATION_RMS_RATIO_MAX * float(np.mean(noise))
E assert 0.7050637831255921 <= (2.2 * 0.0575)
E + where 0.0575 = float(0.0575)
E + where 0.0575 = <function mean at 0x7b6f1dbe52b0>(array([0.05 , 0.065]))
E + where <function mean at 0x7b6f1dbe52b0> = np.mean
/verifier/test_outputs.py:177: AssertionError
___________ test_reported_forward_histories_match_independent_solver ___________
def test_reported_forward_histories_match_independent_solver():
for index, shot_id in enumerate(SHOT_IDS):
_, _, _, surface, predicted = shot_entry(shot_id)
reference_sensor, reference_surface = reference_forward(index)
> assert np.sqrt(np.mean((predicted - reference_sensor) ** 2)) <= 0.12, (
f"{shot_id}: predicted_sensor_K is not from the reported model and flux"
)
E AssertionError: blind_01: predicted_sensor_K is not from the reported model and flux
E assert 0.5289649795657164 <= 0.12
E + where 0.5289649795657164 = <ufunc 'sqrt'>(0.2798039496069588)
E + where <ufunc 'sqrt'> = np.sqrt
E + and 0.2798039496069588 = <function mean at 0x7b6f1dbe52b0>(((array([[293.15 , 293.15 , 293.15 , 293.15 ,\n 293.15 , 293.15 , 293.15 , 293.15 ,\n 293.15 , 293.15 , 293.15008188, 293.15061247,\n 293.15226866, 293.15587938, 293.1622...
E + where <function mean at 0x7b6f1dbe52b0> = np.mean
/verifier/test_outputs.py:204: AssertionError
______________ test_blind_sensor_residuals_are_at_the_noise_floor ______________
def test_blind_sensor_residuals_are_at_the_noise_floor():
measured = BLIND_DATA["temperature_K"].astype(float)
for index, shot_id in enumerate(SHOT_IDS):
entry, _, _, _, _ = shot_entry(shot_id)
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
427