Skip to content

Docs: DocC articles for Bragg, Parallax, Strain, Embedding, Ptycho - #4

Merged
Paullo9 merged 1 commit into
mainfrom
claude/project-thread-t53gz4
Oct 22, 2026
Merged

Paullo9 merged 1 commit into
mainfrom
claude/project-thread-t53gz4

Conversation

@Paullo9

@Paullo9 Paullo9 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Requested by Paul · project thread

Every module now has a landing page with Topics and at least one article. Core, Phase and Virtual already had both; this adds the five missing articles and links them from the landing pages.

All five snippets are unverified. The cloud has no Swift toolchain, so none was compiled or run. The Mac nightly compiles them. I wrote each against the public sources by reading signatures, so a compile error is possible. The printed values and the KMeans labels in the comments are expectations, not observed output.

Article Snippet's source symbols
Finding-Bragg-disks (CuboBragg) MappedCube(npy:), VirtualDiffraction.mean(of:), ProbeKernel.flat, BraggDisks.detect(_:kernel:options:), BraggDisks.detectAll(in:kernel:options:tiling:), BraggVectors subscript
Aligning-images (CuboParallax) ParallaxAlignment.shifted(_:rows:columns:by:), ParallaxShift(row:column:), ParallaxAlignment.shift(reference:moving:rows:columns:upsampleFactor:)
From-peaks-to-strain (CuboStrain) LatticeBasis, LatticeVector, LatticeStrain.strain(local:reference:coordinateRotation:), StrainTensor
Clustering-patterns (CuboEmbedding) PCA.fit(_:rows:columns:components:variant:), PCAResult.scores, KMeans.fit(_:rows:columns:initialCentroids:...), KMeansResult.labels
Preparing-a-reconstruction (CuboPtycho) PtychographyPreparation.objectSampling(wavelength:angularSampling:size:), PtychographyProbe.build(...), PtychographyArray.rows/columns

Landing pages: an Essentials group is added to Bragg, Parallax, Embedding and Ptycho. CuboStrain had no Topics, so it gets a full list. CuboBragg also lists BraggScanResult, BraggFailurePolicy, BraggMasking and BraggTieOrder. CuboEmbedding lists PCA, PCAResult, KMeans, KMeansResult and EmbeddingError.

Mac to do: tools/readme-consumer/run.sh does not cover these articles, which are not the README. Compile the snippets by hand, then run tools/build-docs.sh and look for unresolved topics or warnings.

No Swift source or number changes, so no CHANGELOG entry.


Generated by Claude Code

…; Essentials topics on the landing pages

Landing pages gain an Essentials group linking the new article; CuboStrain gets a Topics section and CuboEmbedding the
core types. Snippets are not compiled here (no Swift toolchain in the cloud); the Mac nightly compiles them.

Done: one article per module without one. Next: Mac nightly compiles the snippets and runs tools/build-docs.sh.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017m2gX21vg1oPg1CC7KqQRb
@Paullo9 Paullo9 self-assigned this Oct 22, 2026
@Paullo9
Paullo9 marked this pull request as ready for review October 22, 2026 07:55
@Paullo9
Paullo9 merged commit 78f189e into main Oct 22, 2026
4 checks passed
@Paullo9
Paullo9 deleted the claude/project-thread-t53gz4 branch October 22, 2026 07:55
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.

2 participants