Skip to content

Expose wall_match in the from-vmec-to-wall chartmap CLI - #540

Merged
krystophny merged 1 commit into
mainfrom
feat/chartmap-cli-wall-match
Nov 20, 2026
Merged

krystophny merged 1 commit into
mainfrom
feat/chartmap-cli-wall-match

Conversation

@krystophny

@krystophny krystophny commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

write_chartmap_from_vmec_to_wall takes wall_match ("vmec_derivative" or "poloidal_normal"), but write_chartmap_from_vmec_and_stl and the from-vmec-to-wall subcommand of the chartmap CLI do not pass it on, so charts built from an STL wall always use "vmec_derivative" (chartmap.py#L1039-L1049). For a diverted equilibrium, the $\partial R/\partial s$ rays from the boundary cross below the X-point, and the chart Jacobian changes sign there.

write_chartmap_from_vmec_and_stl gains wall_match, and the CLI gains --wall-match (chartmap_cli.py#L113-L118). The default is unchanged.

A new test in test_chartmap_vmec_to_wall.py runs the CLI with a stubbed STL slice and checks the value that reaches write_chartmap_from_vmec_to_wall. Without this change, argparse rejects the option.

Chris&AI

@krystophny
krystophny added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 47b1988 Nov 20, 2026
8 checks passed
@krystophny
krystophny deleted the feat/chartmap-cli-wall-match branch November 20, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant