Skip to content

Mappings not in JNIAST - #13

Merged
timj merged 8 commits into
u/timj/phase8-stcfrom
u/timj/phase9-nonjniast
Dec 3, 2026
Merged

timj merged 8 commits into
u/timj/phase8-stcfrom
u/timj/phase9-nonjniast

Conversation

@timj

@timj timj commented Dec 3, 2026

Copy link
Copy Markdown
Member

No description provided.

timj and others added 8 commits December 3, 2026 09:32
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DidLSPfwbAELCxqtcAbPhR
Port C's NormMap and UnitNormMap (normmap.c, unitnormmap.c), with
Rust's files as the guide, and record the public-API rule for classes
jniast lacks in the spec, with astjava-api.txt and its check in
JniastApiTest. Translate test_normmap.rs, test_unitnormmap.rs,
test_mapping_bad.rs and the tests of other files naming the classes,
and add normmap_probe.c, run against the pinned C built with and
without multiply-add contraction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DidLSPfwbAELCxqtcAbPhR
Remove from the deferred fixture lists the entries whose only missing
classes were NormMap and UnitNormMap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DidLSPfwbAELCxqtcAbPhR
Port C's protected XphMap (xphmap.c) as a package-private class, with
Rust's xphmap.rs as the guide: the transformations between the HEALPix
projection types, Equal, the MapMerge that cancels an XphMap with its
inverse, IsLinear, the dump and the loader. Grid indices are held in
doubles and the loader refuses an order or numbers of inputs and
outputs that do not fit, as the hardened C library does.

Translate test_xphmap.rs and the xphmap_oracle cases (converted to
oracle/xphmap.json), add the XphMap case of test_nan_protocol.rs, add
xphmap_probe.c for C's dumps, comparisons and simplifications, and
remove the XphMap entries from the deferred lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DidLSPfwbAELCxqtcAbPhR
Port C's ChebyMap (chebymap.c) as a public subclass of PolyMap, with
Rust's chebymap.rs as the guide: the Chebyshev powers in place of
PolyMap's, the bounding boxes kept as scales and offsets onto [-1, 1],
chebyDomain, PolyTran with its own box and C's fit initialisation, no
iterative inverse, Equal, Copy, Dump and the loader. Add the ChebyMap
branch of PolyMap's MapMerge, which folds the normalisation into the
linear reduction, and write a set IterInverse as C's dump does.

Add chebymap_probe.c, run against the pinned C built with and without
multiply-add contraction, and let oracle-rows.txt list a probe's other
lines as well as its transformed points; PROBE_ROW_TESTS now holds the
prefixes. Translate test_chebymap.rs and the ChebyMap tests of other
files, record the C bug that cancels a ChebyMap with a PolyMap of the
same coefficients, and remove the ChebyMap entries from the deferred
lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DidLSPfwbAELCxqtcAbPhR
Port C's SplineMap (splinemap.c), with Rust's splinemap.rs as a guide:
the constructor takes SciPy's coefficient order as C's astSplineMap
does, CMLIB's Db2val, Dbvalu and Dintrv as C has them, the
Newton-Raphson inverse, Rate, Equal, MapMerge, the attributes InvNiter,
InvTol, OutUnit and the read-only SplineKx to SplineNy, splineKnots,
splineCoeffs, Dump and the loader, which refuses what the hardening PR
refuses.

Check it against a new C probe, splinemap_probe.c, built with and
without multiply-add contraction, and against the Rust repository's
spline_inverse oracle; translate the Rust tests of the class and those
of other files that were waiting for it. Record a C bug: simplifying an
inverted CmpMap changes the Invert attribute of a SplineMap it holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DidLSPfwbAELCxqtcAbPhR
Remove from the deferred fixture lists the entries whose only missing
class was SplineMap, the lsst2.ast FrameSet among them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DidLSPfwbAELCxqtcAbPhR
The phase report and the rulings of phase 9, the Mappings jniast lacks:
NormMap, UnitNormMap, XphMap, ChebyMap and SplineMap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DidLSPfwbAELCxqtcAbPhR
@timj
timj added this pull request to stack #4 December 3, 2026 17:28
@timj
timj merged commit ea94bcc into main Dec 3, 2026
4 checks passed
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