harbor run -t openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-0515harbor download openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-0515You are given a scaffold with NotImplementedError stubs for a tiny Cherenkov photon shower simulator. Your task is to replace these stubs with a self-contained, testable implementation that conforms to the documented interfaces and behavior described below. Do not modify the tests themselves.
Implement the functions, class, and helpers in the scaffold so they provide a coherent, physics-informed, and deterministic (when seeded) Cherenkov photon shower simulation. The public surface area and signatures must remain exactly as in the scaffold; only the bodies should be replaced with working code.
Key behaviors to implement (described in detail below):
compute_beta_from_energy(kinetic_energy_mev)
refractive_index_at_altitude(altitude_m)
cherenkov_condition(beta, n)
sample_wavelengths(lambda_min, lambda_max, count, seed)
cherenkov_angle_deg(beta, n)
sample_emission_distance(track_length, mean_free_path, seed)
simulate_cherenkov(kinetic_energy_mev, altitude_start_m, lambda_min_m, lambda_max_m, track_length_m, seed)
CherenkovShowerSimulator class
save_photons_csv(records, filename)
write_simulation_log(records, filename)
main_configured_run(config)
If your repository uses a differently named file for the scaffold, apply the same changes to that module while preserving the exact function signatures and class interface.
Good luck!