Files
Jungfraujoch/writer
leonarski_fandClaude Opus 5 03e481ff2a
Build Packages / build:windows:nocuda (push) Successful in 11m32s
Build Packages / build:windows:cuda (push) Successful in 14m21s
Build Packages / build:viewer-tgz:cpu (push) Successful in 12m32s
Build Packages / build:viewer-tgz:cuda (push) Successful in 14m42s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 17m0s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 19m48s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 19m48s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 14m25s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 19m56s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 18m14s
Build Packages / build:rpm (rocky8) (push) Successful in 21m13s
Build Packages / build:rpm (rocky9) (push) Successful in 18m51s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 20m20s
Build Packages / XDS test (durin plugin) (push) Successful in 8m53s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 16m22s
Build Packages / Generate python client (push) Successful in 19s
Build Packages / Create release (push) Skipped
Build Packages / Build documentation (push) Successful in 1m1s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 8m46s
Build Packages / XDS test (neggia plugin) (push) Successful in 7m6s
Build Packages / DIALS test (push) Successful in 16m54s
Build Packages / Unit tests (push) Successful in 2h37m13s
Export the detector tilt correctly in the NXmx transformation chain
Three independent errors, all invisible while the tilt is zero - which it is in
every test and every CI file, and which is why this survived.

1. rot1 and rot2 carried each other's axis. Jungfraujoch holds the tilt in the
   PyFAI PONI convention, poni_rot = Rz(-rot3)*Rx(-rot2)*Ry(+rot1), written in
   the internal frame (x along increasing column, y along increasing row, z along
   the beam). NXmx uses McStas, which is that frame turned 180 degrees about x -
   a proper rotation, NOT a mirror - so rotations about y and z reverse sense and
   those about x do not. Correct vectors are rot1 (0,-1,0), rot2 (1,0,0), rot3
   (0,0,-1); only rot3 was already right.

2. The depends_on chain composed the rotations in the reverse order. A chain
   applies the deepest dependency first, so rot3 has to sit at the root for the
   product to be R_rot3*R_rot2*R_rot1. Second-order: it only shows up when two
   angles are non-zero at once.

3. The tilt pivoted about the wrong point. With translation at the root, a reader
   takes the panel origin as the unrotated vector and merely reorients the panel,
   while Jungfraujoch rotates the whole sample->pixel vector including the
   distance. Moving translation inside the rotations fixes the pivot; this was the
   largest of the three and is invisible to any test that only checks axes.

Verified against DIALS 3.27 by comparing the lab position of nine pixels spread
over the detector against poni_rot applied to the sample->pixel vector, over nine
tilt settings including combined and mixed-sign angles: max error 1.6e-6 mm,
which is float32 rounding of the stored metadata. The shipped encoding gives
40.7 mm - 542 pixels - at a (0.2, 0.3, 0.15) rad tilt.

Note when comparing by hand that dxtbx applies a parallax correction in its
pixel->mm conversion, which Jungfraujoch does not model; get_pixel_lab_coord is
therefore not the right comparison point and shows a ~0.1 mm radius-dependent
offset that is not a geometry error.

Jungfraujoch's own reader is unaffected: it reads rot1/rot2/rot3 by dataset path
and never consults the vectors or the chain, which is why the round trip stayed
self-consistent throughout.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-22 19:04:43 +02:00
..
2026-07-19 09:39:28 +02:00
2026-07-19 09:39:28 +02:00
2026-07-19 09:39:28 +02:00
2026-05-06 21:50:02 +02:00
2026-05-06 21:50:02 +02:00
2026-07-03 19:18:56 +02:00
2026-06-08 08:30:35 +02:00
2024-11-22 21:25:20 +01:00
2026-06-08 08:30:35 +02:00
2026-06-08 08:30:35 +02:00
2026-08-13 17:03:10 +02:00
2026-08-13 17:03:10 +02:00
2026-03-05 22:13:12 +01:00
2026-06-08 08:30:35 +02:00
2026-03-05 22:13:12 +01:00
2026-06-08 08:30:35 +02:00
2026-07-12 19:42:29 +02:00
2026-07-03 19:18:56 +02:00
2026-06-23 20:29:49 +02:00
2026-08-13 17:03:10 +02:00
2026-06-08 08:30:35 +02:00
2026-07-11 07:19:11 +02:00
2026-06-08 08:30:35 +02:00