9302a86ea8
New docs: - docs/em_spectrum_overlay.html: Full EM spectrum with Khra/Gixx lines, physics markers, cell-size slider - docs/2026-03-28_170500_cto-report_fractal-echo-analysis.txt: CTO fractal echo analysis report New scripts (Beast sweep infrastructure + analyzers): - scripts/nuclear_magic_analyzer.py: shell structure, peak clustering, mode counting, GUE tests - scripts/physics_domain_analysis.py: 4-domain physics (nuclear shells, Brillouin, band gaps, GUE) - scripts/direct_zmq_sweep.py: ZMQ direct sweep driver - scripts/sweep_real.py: real sweep execution - scripts/analyze_sweep.py, comprehensive_analysis.py: sweep analysis tools - scripts/execute_prime_mapping.py: prime lattice mapping - scripts/extrapolate_findings.py, check_extrapolation.py: extrapolation tools - scripts/eta_calc.py, time_estimate.py, updated_estimate.py, show_pattern.py: utilities Prime analysis (root): - navigator_prime_analysis.py, navigator_prime_analysis_v2.py Updated: - navigator/mock_lbm_daemon.py, navigator/telemetry_server.py
63 lines
2.3 KiB
Python
63 lines
2.3 KiB
Python
import csv
|
|
from collections import defaultdict
|
|
|
|
CSV = '/mnt/d/Resonance_Engine/sweep_results/em_direct_sweep_20260327_080716.csv'
|
|
|
|
data = []
|
|
with open(CSV) as f:
|
|
reader = csv.DictReader(f)
|
|
for row in reader:
|
|
data.append(row)
|
|
|
|
cohs = [float(r['coherence']) for r in data]
|
|
print(f'Total points: {len(data)}')
|
|
print(f'Coherence range: {min(cohs):.4f} - {max(cohs):.4f}')
|
|
print(f'Mean coherence: {sum(cohs)/len(cohs):.4f}')
|
|
|
|
by_omega = defaultdict(list)
|
|
for r in data:
|
|
by_omega[float(r['omega'])].append(r)
|
|
|
|
print()
|
|
print('=== Best coherence per omega ===')
|
|
for omega in sorted(by_omega.keys()):
|
|
rows = by_omega[omega]
|
|
best = max(rows, key=lambda r: float(r['coherence']))
|
|
print(f' Omega={omega:.1f}: Coh={float(best["coherence"]):.4f} K={best["khra_amp"]} G={best["gixx_amp"]} Asym={float(best["asymmetry"]):.4f}')
|
|
|
|
print()
|
|
print('=== Top 10 parameter combos (by coherence) ===')
|
|
sorted_data = sorted(data, key=lambda r: float(r['coherence']), reverse=True)
|
|
for i, r in enumerate(sorted_data[:10]):
|
|
print(f' #{i+1}: Omega={r["omega"]} K={r["khra_amp"]} G={r["gixx_amp"]} -> Coh={r["coherence"]} Asym={r["asymmetry"]} Vort={r["vorticity_mean"]}')
|
|
|
|
print()
|
|
print('=== Bottom 5 parameter combos (by coherence) ===')
|
|
for i, r in enumerate(sorted_data[-5:]):
|
|
print(f' Omega={r["omega"]} K={r["khra_amp"]} G={r["gixx_amp"]} -> Coh={r["coherence"]} Asym={r["asymmetry"]}')
|
|
|
|
print()
|
|
print('=== Asymmetry at coherence extremes ===')
|
|
top20 = sorted_data[:20]
|
|
bot20 = sorted_data[-20:]
|
|
print(f' Top 20 coh avg asymmetry: {sum(float(r["asymmetry"]) for r in top20)/20:.4f}')
|
|
print(f' Bottom 20 coh avg asymmetry: {sum(float(r["asymmetry"]) for r in bot20)/20:.4f}')
|
|
|
|
print()
|
|
print('=== Coherence by khra (averaged across all omega/gixx) ===')
|
|
by_khra = defaultdict(list)
|
|
for r in data:
|
|
by_khra[r['khra_amp']].append(float(r['coherence']))
|
|
for k in sorted(by_khra.keys()):
|
|
vals = by_khra[k]
|
|
print(f' K={k}: avg_coh={sum(vals)/len(vals):.4f} (n={len(vals)})')
|
|
|
|
print()
|
|
print('=== Coherence by gixx (averaged across all omega/khra) ===')
|
|
by_gixx = defaultdict(list)
|
|
for r in data:
|
|
by_gixx[r['gixx_amp']].append(float(r['coherence']))
|
|
for g in sorted(by_gixx.keys()):
|
|
vals = by_gixx[g]
|
|
print(f' G={g}: avg_coh={sum(vals)/len(vals):.4f} (n={len(vals)})')
|