Skip to content

Take indata2json at the commit that keeps a trailing zero spline value - #803

Open
CharlesCNorton wants to merge 2 commits into
proximafusion:mainfrom
CharlesCNorton:fix/indata2json-pin
Open

Take indata2json at the commit that keeps a trailing zero spline value#803
CharlesCNorton wants to merge 2 commits into
proximafusion:mainfrom
CharlesCNorton:fix/indata2json-pin

Conversation

@CharlesCNorton

Copy link
Copy Markdown
Contributor

indata2json at the pinned f59e3dd trimmed the trailing zeros of am_aux_f, ai_aux_f and ac_aux_f independently of their knot arrays, so an INDATA file whose spline profile ends at exactly zero, the ordinary case for a pressure or current profile, converted to a JSON with one value fewer than knots and VmecINDATA::FromJson rejected it. The shipped input.cth_like_fixed_bdy_spline_pressure could not be loaded through VmecInput.from_file.

Upstream fixed this in jonathanschilling/indata2json#12 (df7e911), which sizes both arrays of a pair from the knot array. This takes that commit. The new test loads the shipped spline INDATA and requires all 201 knots and values, equal to the shipped JSON; it fails at the previous pin.

tests/test_init.py passes.

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