Migration from legacy scripts¶
The original exploratory scripts are preserved under legacy/old_mhx/. They are
not imported by the rebuilt package and are not part of the public API.
Use the active CLI instead:
Legacy workflow |
Active replacement |
|---|---|
|
|
|
|
|
|
|
|
|
Roadmap: TOML-driven scan command after the v1 validation core is complete. |
|
Roadmap: differentiable inverse-design command after calibrated tearing eigenvalue validation. |
|
|
Why the old scripts are archived¶
The old scripts were valuable exploratory tooling, but they mixed solver code, plotting, hard-coded parameters, objective functions, and output paths. The new package keeps these concerns separate:
configs live in TOML and are saved as
config_effective.json;diagnostics are registry entries with stable output keys;
physics terms are versioned plugins;
artifacts are schema-versioned and checksumed;
validation commands have explicit pass/fail gates.
Enforcement¶
Run the same check used in CI:
python tools/check_legacy_imports.py
This fails if active Python files import legacy.old_mhx or any archived
top-level script module such as mhd_tearing_solve.