Skip to content

feat(i13-1): scaffold Diamond I13-1 (I13 coherence branch) deployment, the fleet's first coherent lensless imaging (ptychography / CDI), reverse-engineered and deliberately partial#398

Merged
xmap merged 1 commit into
mainfrom
worktree-i13-deployment
Jun 26, 2026

Conversation

@xmap

@xmap xmap commented Jun 26, 2026

Copy link
Copy Markdown
Owner

What

Scaffolds Diamond I13-1 (the coherence branch of I13), CORA's first coherent lensless-imaging deployment: hard X-ray ptychography / coherent diffraction imaging (raster a coherent beam, capture far-field diffraction, reconstruct downstream). The fleet had tomography, an XRF microprobe, and a hard X-ray nanoprobe, but no ptychography / CDI. Reverse-engineered from dodal (src/dodal/beamlines/i13_1.py), the 10th Diamond beamline.

Deliberately partial (the I20-1 posture)

The dodal i13_1 module exposes only the coherence-branch endstation — a piezo sample stage, a side viewing camera, and the Merlin detector. The shared I13 source and optics (undulator, mono, mirrors, slits) are upstream and not in the module, so they are deferred, not invented (SRC-1, OPT-1). EPICS PVs (the BL13J prefix) are real, carried confirm.

Why zero new families

The novelty is an acquisition shape + reconstruction, i.e. a Method, not a device class — the devices the technique needs (a sample-scanning stage, area detectors) are already in the catalog. The scout anticipated a new "coherent imaging" device family; that's the wrong axis (the same over-prediction the eval corrected for i19's four-circle). So:

  • PI piezo sample-scanning stage → LinearStage (the ptychography raster; the fixed-angle variant is a setting on the same stage)
  • Merlin (Medipix3) detector + Aravis side camera → Camera
  • machine state → loose StorageRing
  • ptychography / CDI → a new pending Method (the fleet's first coherent diffractive imaging); the reconstruction is ComputePort work, not a device (TECH-1)

Zero new families, nothing graduates, the catalog is unchanged.

Gate

  • 410 deployment tests pass; mkdocs --strict builds clean
  • adversarial per-doc verify (generated-page list pre-fed): three wrong-depth cross-references fixed (a Detector/Controls/Merlin link pointing at the generated beamline.md instead of the equipment pages); no invention — the deferred shared source/optics confirmed absent, not fabricated

🤖 Generated with Claude Code

…, the fleet's first coherent lensless imaging (ptychography / CDI), reverse-engineered and deliberately partial

I13-1 is the coherence branch of Diamond's I13 (Hard X-ray Imaging and Coherence) and
CORA's FIRST coherent lensless-imaging deployment: hard X-ray ptychography and coherent
diffraction imaging (raster a coherent beam across the sample, capture the far-field
coherent diffraction, reconstruct a real-space image downstream). The fleet has
tomography, an XRF microprobe, and a hard X-ray nanoprobe, but no ptychography / CDI.
Reverse-engineered from DiamondLightSource/dodal (src/dodal/beamlines/i13_1.py), the
10th Diamond beamline.

DELIBERATELY PARTIAL (the I20-1 posture). The dodal i13_1 module exposes only the
coherence-branch endstation: a piezo sample-scanning stage, a side viewing camera, and
the Merlin coherent-diffraction detector. The shared I13 source and optics (undulator,
monochromator, mirrors, slits) are upstream and not in the module, so they are deferred,
not invented (SRC-1, OPT-1). EPICS PVs (the BL13J prefix) are real, carried confirm.

WHY zero new families. The novelty is an acquisition shape plus a reconstruction, i.e. a
Method, NOT a device class: the devices the technique needs are a sample-scanning stage
and area detectors, both already in the catalog. The scout that surfaced I13-1
anticipated a new "coherent imaging" device family; that is the wrong axis (the same
over-prediction the eval corrected for i19's four-circle). So the PI piezo
sample-scanning stage binds LinearStage (the ptychography raster is its operative
motion; the fixed-angle lab-frame variant on BL13J-MO-PI-02:FIXANG: is a setting on the
same stage), the Merlin (Medipix3) photon-counting detector and the Aravis side viewing
camera bind Camera, and the machine state binds the loose StorageRing. Ptychography / CDI
is carried as a new pending Method (the fleet's first coherent diffractive imaging); the
image reconstruction from the diffraction stack is ComputePort work, not a beamline
device (TECH-1). Zero new families, nothing graduates, the catalog is unchanged.

Wiring: I13-1 added to the Diamond Site beamline list with a ptychography Practice; the
new pending ptychography method added to the registry; mkdocs nav block. Gate: 410
deployment tests pass, mkdocs --strict builds clean, adversarial per-doc verify
(generated-page list pre-fed: three wrong-depth cross-references fixed, a Detector /
Controls / Merlin link pointing at the generated beamline.md instead of the equipment
pages; no invention, the deferred shared source / optics confirmed absent not fabricated).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@xmap xmap enabled auto-merge (squash) June 26, 2026 17:06
@github-actions

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@xmap xmap merged commit 473bbad into main Jun 26, 2026
16 checks passed
@xmap xmap deleted the worktree-i13-deployment branch June 26, 2026 17:15
xmap added a commit that referenced this pull request Jun 26, 2026
Resolve the append-only conflicts (NSLS-II beamline list, mkdocs nav, deployments
index row, the FlowController/BeamPositionMonitor promotion-review notes) against the
current main, which has advanced to ISR (#399).

Reconcile CDI against i13-1 (#398, merged after CDI was opened): i13-1 is the fleet's
first coherent diffractive imaging and coined the pending ptychography Method. CDI no
longer claims "first"; it is the second coherent-imaging deployment and the first at
NSLS-II / first full source-to-detector one, reinforcing i13-1's pending ptychography
Method (ptychography reuses it; forward / Bragg CDI are its single-shot variants, not
separately coined). No Practice recorded (CHX discipline). Gate: 424 deployment tests
pass, mkdocs --strict clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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