"""Emit the broken-y-axis allreduce-vs-FSIM comparison plot. Post-processes summary.csv (written by the latency sweep) into comparison_mesh_vs_ring_vs_2DTorus_vs_theoretical_vs_fsim.png. Pure plotting; reads the on-disk summary.csv (skips if the sweep has never run). """ from __future__ import annotations from pathlib import Path import pytest from tests.sccl._allreduce_helpers import ( _SWEEP_OUT_DIR, emit_comparison_fsim_plot, ) def test_emit_comparison_fsim_plot(): if not (_SWEEP_OUT_DIR / "summary.csv").exists(): pytest.skip("summary.csv absent; run the latency sweep first") out = emit_comparison_fsim_plot() assert out is not None and Path(out).exists()