import sys, types
import wilson_hmc as w   # same-dir import; no cache=True so compiles once per process, reused across kappas
kappas = [float(x) for x in sys.argv[1:]]
for k in kappas:
    print(f"=== kappa={k} ===", flush=True)
    a = types.SimpleNamespace(L=6, beta=5.6, kappa=k, n_md=60, dt=0.006, ntraj=60, therm=25,
                              tol=1e-8, force_tol=1e-5, seed=3000 + int(round(k * 10000)),
                              outdir="results_kscan", verbose=True)
    w.run_hmc(a)
