You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EQUIL - CLEANUP - Tighten the psihigh-clamp seam after the EquilibriumConfig freeze
Review follow-ups on the previous commit; no behavior change.
- Drop the unused 1-arg clamp_psihigh_to_separatrix(::DirectRunInput). It had no callers left
and took psihigh from raw_profile.config, which is exactly what the config no longer owns.
- Replace it with a 2-arg forwarder taking anything that carries the EFIT flux map, so the
NamedTuple-or-DirectRunInput duck typing lives next to the clamp instead of being spelled
out at the call site.
- Map the read_efit_arrays NamedTuple onto DirectRunInput by field name in one place rather
than splatting it positionally at two call sites, where adding a struct field would break
silently.
- Say where the authoritative psihigh comes from at the three places a reader cannot infer it:
equil.config in the two-pass block, why the clamp merges instead of mutating the caller's
dict (it is re-serialized into gpec.h5), and that the rerun config is a placeholder.
- Trim the setup_equilibrium docstring to what a caller needs, replace a comment that described
the previous implementation, and unwind a ||-return into an if.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments